Support for the Ruby 2.2 series has ended. See here for reference.

In Files

  • mathn.rb

Parent

Class/Module Index [+]

Quicksearch

Fixnum

When mathn is required, Fixnum's division is enhanced to return more precise values from mathematical expressions.

2/3*3  # => 0
require 'mathn'
2/3*3  # => 2