SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
displaynumber.h File Reference

One formatting rule for numbers shown to people. More...

#include <QString>
Include dependency graph for displaynumber.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openswmmvis
 

Functions

QString openswmmvis::displayNumber (double value)
 Format a number for display using 15 significant digits.
 

Detailed Description

One formatting rule for numbers shown to people.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License
GPL-3.0-or-later

17 significant digits is round-trip precision for SERIALIZATION; on screen it exposes binary representation noise (3.25 stored as 3.2499999999999996). 15 digits reproduces every decimal a user can type with up to 15 significant digits, so authored values display exactly as entered. Keep 'g', 17 for anything written to a file or hashed.