Method: When::Coordinates::Residue#+
- Defined in:
- lib/when_exe/coordinates.rb
#+(other) ⇒ When::Coordinates::Residue
remainderの加算
other : Numeric
326 327 328 329 |
# File 'lib/when_exe/coordinates.rb', line 326 def +(other) carry, remainder = (@remainder + other).divmod(@divisor) return self.class.new(remainder, @divisor, @carry+carry, @units) end |