formatting floating point

Jarrett Billingsley jarrett.billingsley at gmail.com
Sat Jul 11 14:57:12 PDT 2009


On Sat, Jul 11, 2009 at 5:50 PM, Saaa<empty at needmail.com> wrote:
> double d[2] = [ 0, 1, double.max];
> char[] c = format(d);
>
>  How do I get c to represent full precision?
>
> "[0,1,1.7976931348623157e+308]" // but then with double.max being
> represented fully

You want a 309-digit number consisting mostly of 0s?


More information about the Digitalmars-d-learn mailing list