1 2 3 4 5 6 7 8 9 10 11
# Float represents a 64-bit floating point number. # Inherits numeric helper methods from Num. # # x = 3.14 # x.positive?() # true # x.abs # 3.14 # x.is_a?(Num) # true # class Float < Num { def zero?() { self == 0.0 } }