Float question
zy-design opened this issue · 2 comments
zy-design commented
hi, rubysolo
c = Dentaku::Calculator.new
c.evaluate('a+b+c', a: 0, b: 0, c: 77.9) =>0.7790000000000001e2
but i wish i got result equal : c.evaluate('a+b+c', a: 0, b: 0, c: 77.9) =>77.9
how can i do?
a5-stable commented
@zy-design
It seems that 2246cb9 and #273 resolved this.
Now I can obtain the correct result:
> c.evaluate('a+b+c', a: 0, b: 0, c: 77.9)
=> 0.779e2
zy-design commented
thanks guys @a5-stable @rubysolo