When trying to add or multiply certain values, double conversion generates incorrect results.
>0.1 + 0.2
> > 0.30000000000000004
> 0.1 * 0.1
> > 0.010000000000000002
Is there any fix for this other than repetitive round() statements? Thanks!
When trying to add or multiply certain values, double conversion generates incorrect results.
>0.1 + 0.2
> > 0.30000000000000004
> 0.1 * 0.1
> > 0.010000000000000002
Is there any fix for this other than repetitive round() statements? Thanks!