maths 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/maths/calc.rb +1 -1
- data/lib/maths/calc.y +1 -1
- data/lib/maths/version.rb +1 -1
- metadata +2 -2
data/lib/maths/calc.rb
CHANGED
data/lib/maths/calc.y
CHANGED
@@ -19,7 +19,7 @@ rule
|
|
19
19
|
| exp '*' exp { result *= val[2] }
|
20
20
|
| exp '/' exp { result /= val[2] }
|
21
21
|
| exp '%' exp { result %= val[2] }
|
22
|
-
| exp '^' exp { result = result.power(val[2])}
|
22
|
+
| exp '^' exp { result = result.power(val[2].to_r)}
|
23
23
|
| '(' exp ')' { result = val[1] }
|
24
24
|
| '|' exp '|' { result = val[1].abs }
|
25
25
|
| '-' NUMBER =UMINUS { result = -val[1] }
|
data/lib/maths/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maths
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json_pure
|