Class: Fixnum (Ruby 2.3.4)

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