Parent

Methods

Fixnum

Public Instance Methods

div(n) click to toggle source

Standard in ruby 1.8.7+. See official documentation

# File lib/backports/1.8.7/fixnum.rb, line 3
def div(n)
  (self / n).to_i
end
fdiv(n) click to toggle source

Standard in ruby 1.8.7+. See official documentation

# File lib/backports/1.8.7/fixnum.rb, line 8
def fdiv(n)
  to_f / n
end
Also aliased as: self
self(n) click to toggle source
Alias for: fdiv

[Validate]

Generated with the Darkfish Rdoc Generator 2.