lib/maths/calc.rb in maths-0.0.12 vs lib/maths/calc.rb in maths-0.0.13
- old
+ new
@@ -277,10 +277,10 @@
end
.,.,
module_eval(<<'.,.,', 'calc.y', 21)
def _reduce_9(val, _values, result)
- result = result.power(val[2].to_r)
+ result = result.power(Formatter.big_d_to_rational(val[2]))
result
end
.,.,
module_eval(<<'.,.,', 'calc.y', 22)