Method: When::Coordinates::Residue#-

Defined in:
lib/when_exe/coordinates.rb

#-(other) ⇒ When::Coordinates::Residue

remainderの減算

Parameters:

Returns:



337
338
339
340
# File 'lib/when_exe/coordinates.rb', line 337

def -(other)
  carry, remainder = (@remainder - other).divmod(@divisor)
  return self.class.new(remainder, @divisor, @carry+carry, @units)
end