class Float
Floats can be treated the same way as Fixnums.
Public Instance Methods
*(other)
click to toggle source
# File lib/rams/numeric.rb, line 50 def *(other) return other * self if other.is_a? RAMS::Expression old_multiply other end
Also aliased as: old_multiply
+(other)
click to toggle source
# File lib/rams/numeric.rb, line 40 def +(other) return other + self if other.is_a? RAMS::Expression old_add other end
Also aliased as: old_add
-(other)
click to toggle source
# File lib/rams/numeric.rb, line 45 def -(other) return -other + self if other.is_a? RAMS::Expression old_sub other end
Also aliased as: old_sub
/(other)
click to toggle source
# File lib/rams/numeric.rb, line 55 def /(other) return other * (1.0 / self) if other.is_a? RAMS::Expression old_divide other end
Also aliased as: old_divide