Separate Printing Mantissa and Exponent of a Floating Point

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 11 06:47:13 PDT 2014


Is there a way to separately stringify/print the mantissa and 
exponent of a floating point?

I want this in my pretty-printing module to produce something like

1.2 \cdot 10^3

instead of

1.2e3

I could of course always split on the e but that is kind of 
non-elegant, I believe.


More information about the Digitalmars-d-learn mailing list