1
/* Case of negative zero exponent: 'e-00'.
2
$Id: dtostre-expm00.c,v 1.1 2007/02/06 12:36:58 dmix Exp $
9
PROGMEM static const struct dtostre_s t[] = {
11
{ { 0x3f7fffff }, 0, 0, "1e-00" },
12
{ { 0x3f7fffff }, 1, 0, "1.0e-00" },
13
{ { 0x3f7fffff }, 2, 0, "1.00e-00" },
14
{ { 0x3f7fffff }, 3, 0, "1.000e-00" },
15
{ { 0x3f7fffff }, 4, 0, "1.0000e-00" },
16
{ { 0x3f7fffff }, 5, 0, "1.00000e-00" },
17
{ { 0x3f7fffff }, 6, 0, "9.999999e-01" },
18
{ { 0x3f7fffff }, 7, 0, "9.9999994e-01" },
20
{ { 0xbf7fffff }, 0, 0, "-1e-00" },
22
{ { .fl = 0.9500001 }, 0, 0, "1e-00" },
23
{ { .fl = 0.9950001 }, 1, 0, "1.0e-00" },
24
{ { .fl = 0.9995001 }, 2, 0, "1.00e-00" },
25
{ { .fl = 0.9999501 }, 3, 0, "1.000e-00" },
26
{ { .fl = 0.9999951 }, 4, 0, "1.0000e-00" },
27
{ { .fl = 0.9999996 }, 5, 0, "1.00000e-00" },
33
for (i= 0; (size_t)i != sizeof(t)/sizeof(t[0]); i++)
34
run_dtostre (t+i, i+1);