[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #2921: Postgresql 19.900000000000055 is 20 in Gambas


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

Comment #13 by Christof THALHOFER:

Still not ok:

------------------------------------------------------------
Public Sub Main()

  Dim f As Float

  f = 19.900000000000055
  f = Round(f, -2)
  Print f

  f = 19.90000000000001
  f = Round(f, -2)
  Print f

End
------------------------------------------------------------

Leads to:

1,99000000000001E+13
19,9

Hmmm ...

Christof THALHOFER changed the state of the bug to: Opened.


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----