Class: Wiris::Math

Inherits:
Object
  • Object
show all
Defined in:
lib/src-generic/Math.rb,
lib/src-generic/extended/Math.rb

Class Method Summary collapse

Class Method Details

.floor(f) ⇒ Object



11
12
13
# File 'lib/src-generic/Math.rb', line 11

def self.floor(f)
	return f.floor
end

.randomObject



7
8
9
# File 'lib/src-generic/Math.rb', line 7

def self.random()
	return Random::rand()
end

.round(f) ⇒ Object



3
4
5
# File 'lib/src-generic/Math.rb', line 3

def self.round(f)
	return f.round
end