method
truncate
truncate()
public
Hide source
# File lib/rational.rb, line 364 def truncate() if @numerator < 0 return -((-@numerator).div(@denominator)) end @numerator.div(@denominator) end