boxbeam/Crunch

Precision issue on simple multiply

Closed this issue · 2 comments

Hey! Awesome library BTW. Just noticing some strange behaviour with some simple multiplication:
Crunch.evaluateExpression("3.2 * 4.7") is resolving to 15.040000000000001
Does this seem right to you? I would have expected just 15.04.
Thanks!

This is a floating point error. It happens no matter what, and is not unique to Crunch.
image

Thanks!