[Gambas-user] Issue 165 in gambas: Arithmetic problem with float
gambas at ...2524...
gambas at ...2524...
Wed Dec 21 20:12:21 CET 2011
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 165 by jussi.la... at ...626...: Arithmetic problem with float
http://code.google.com/p/gambas/issues/detail?id=165
1) Describe the problem.
Dim ff As Float = 2 ^ 23
Print ff
Gambas gives result: 8388607.99999999 while expected is 8388608.
Floating point (64bit) precision should be enough for accurate result.
2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):
Version: TRUNK
Revision: r4297
Operating system: Linux
Distribution: Xubuntu
Architecture: x86_64
GUI component: QT4 and GTK+
Desktop used: XFCE
3) Provide a little project that reproduces the bug or the crash.
Attached.
Attachments:
ArithmeticError-0.0.1.tar.gz 4.6 KB
More information about the User
mailing list