[Libreoffice-bugs] [Bug 107953] New: Not enough precision when showing single-precision variable in BASIC debugger watch
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri May 19 12:01:42 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=107953
Bug ID: 107953
Summary: Not enough precision when showing single-precision
variable in BASIC debugger watch
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: lowest
Component: BASIC
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: mikekaganski at hotmail.com
As described on
https://randomascii.wordpress.com/2012/03/08/float-precisionfrom-zero-to-100-digits-2/,
to uniquely identify a single, it is required to show 9 decimal digits (and 17
for double). Currently, watch in BASIC IDE shows only 7 decimals for single, so
e.g.
> dim s1 as single, s2 as single, d as double
> s1 = 1.1754943
> s2 = 1.1754944
> d = s2 - s1
would show s1 and s2 *both* as 1.175494, while d would contain 1.192E-07,
showing that the shown precision is not enough.
The suggestion is to show 9 significant digits for single values.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170519/ff29dfb2/attachment.html>
More information about the Libreoffice-bugs
mailing list