Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/ruby-vpi/float.rb
Instance Method Summary collapse
-
#mantissa ⇒ Object
Returns the mantissa of this floating point number.
Instance Method Details
#mantissa ⇒ Object
Returns the mantissa of this floating point number
34 35 36 37 |
# File 'lib/ruby-vpi/float.rb', line 34 def mantissa f = abs f - f.floor end |