rubysolo/dentaku

Float question

zy-design opened this issue · 2 comments

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?

@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