After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 505168 - Truncated numbers not visually marked
Truncated numbers not visually marked
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
5.21.x
Other All
: Low normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks: 500994
 
 
Reported: 2007-12-23 06:40 UTC by Robert Ancell
Modified: 2010-04-15 02:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robert Ancell 2007-12-23 06:40:32 UTC
When in arithmetic mode the display can contain numbers that are approximations (e.g. the Ans variable). There is no way for the user to tell the difference between an approximated number.

e.g.

1. Set accuracy to 2sf
2. Enter '1/3' (enter)
3. Display shows '0.33'
4. Type '+0.33'
5. Display shows '0.33+0.33'

The user has no way of knowing which number is an approximation and which is not.

I suggest we use bold/colour/underline so show the approximated numbers.
Comment 1 Sami Pietilä 2007-12-23 08:22:30 UTC
Robert, if we can bold/color/underline the trunkated number and pass the information somehow to the parser also, then we can also fix expression hand-editing. Because we can then make the parser to detect and handle the truncated number.

Basically all we need is to point out to the parser, which number is truncated. My proof-of-concept patch used ".." at the end of the truncated number. However, the idea is that any marking will do.