Module: Trith::Core::Math::Operators

Defined in:
lib/trith/core/math.rb

Overview

Math operators.

Instance Method Summary (collapse)

Instance Method Details

- (Integer) ceil(n)

Parameters:

Returns:

  • (Integer)


19
20
21
# File 'lib/trith/core/math.rb', line 19

def ceil(n)
  n.ceil
end

- (Integer) floor(n)

Parameters:

Returns:

  • (Integer)


26
27
28
# File 'lib/trith/core/math.rb', line 26

def floor(n)
  n.floor
end