[Gambas-bugtracker] Bug #1562: Bad calculation

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Thu Apr 18 22:11:37 CEST 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1562&from=L21haW4-

Comment #3 by Benoît MINISINI:

When you reach the floating-point precision limit, Float to String conversion may not use the last bit.

So "Print -1 + 1e-16" returns "-1", but internally they are not the same number.




More information about the Bugtracker mailing list