www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - formatting && precision

reply "Saaa" <empty needmail.com> writes:
Isn't the precision of a float 8 decimal digits?
.dig reports 6

Why isn't "%.100g" cropped to the max decimal digits of the accompanying 
type?
floating point types are printed with 20 digits. 
Jul 24 2009
parent "Saaa" <empty needmail.com> writes:
I just want to format in full precision.
As far as I can see 6 digits is not the full precision
e.g. 0x7EAAAAAB = 1.1342746e38
Jul 24 2009