truncate() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rational.rb, line 364
  def truncate()
    if @numerator < 0
      return -((-@numerator).div(@denominator))
    end
    @numerator.div(@denominator)
  end
Register or log in to add new notes.