Opened 9 years ago

#33 new enhancement

Remove unnecessary "0"s from our float spin-controls

Reported by: dtodd Owned by:
Priority: minor Milestone:
Component: common Version:
Keywords: Cc:


Our custom spin-control displays numbers like 0.5, as this:

It looks very strange in the GUI.

While the control currently gives us the ability to reduce the number of digits displayed, it has the cost of chopping off precision if the number is irrational, like 1/3 (0.33333333333333333333). If we limited the display to 5 digits we'd only get 0.33333, and this would be bad. So for irrational numbers displaying lots of digits if fine.

So, I propose we add a smart function to filter the text being displayed and chopping off any insignificant trailing zeros.

Change History (0)

Note: See TracTickets for help on using tickets.