Printing floating points
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Wed Jan 27 06:46:01 UTC 2021
On Wednesday, 27 January 2021 at 02:17:52 UTC, H. S. Teoh wrote:
> If there was a way to make these tables pay-as-you-go, I'd vote
> for it. Adding 104KB or 52KB even if the code never once
> formats a float, is not ideal, though granted, in this day and
> age of cheap, high-capacity RAM not really a big issue.
Network transfer costs responsiveness, Web/WASM. 100Kb to do
float to string conversion in a web app would be crazy. Same with
embedded.
Anyway, in most system programming scenarios where you control
the format it would be better to use hex for accuracy anyway.
More information about the Digitalmars-d
mailing list