rstats 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rstats.rb +0 -5
- data/lib/rstats/version.rb +1 -1
- metadata +1 -1
data/lib/rstats.rb
CHANGED
@@ -3,14 +3,9 @@ $:.unshift(File.dirname(__FILE__)) unless
|
|
3
3
|
require 'bigdecimal'
|
4
4
|
|
5
5
|
class Numeric
|
6
|
-
def square
|
7
|
-
self * self
|
8
|
-
end
|
9
|
-
|
10
6
|
def round_to(precision=nil)
|
11
7
|
precision.nil? ? round : (self * (10 ** precision)).round / (10 ** precision).to_f
|
12
8
|
end
|
13
|
-
|
14
9
|
end
|
15
10
|
|
16
11
|
class Array
|
data/lib/rstats/version.rb
CHANGED