Class Fixnum
In: lib/backports/1.8.7/fixnum.rb
lib/backports/1.8.7/float.rb
Parent: Object

Methods

div   fdiv   self  

Public Instance methods

Standard in ruby 1.8.7+. See official documentation

[Source]

   # File lib/backports/1.8.7/fixnum.rb, line 3
3:   def div(n)
4:     (self / n).to_i
5:   end

Standard in ruby 1.8.7+. See official documentation

[Source]

    # File lib/backports/1.8.7/fixnum.rb, line 8
 8:   def fdiv(n)
 9:     to_f / n
10:   end
self(n)

Alias for fdiv

[Validate]