1*f14fb602SLionel SambucInput: 1.23 2*f14fb602SLionel SambucOutput: d = 3*f14fb602SLionel Sambuc1.23 = 0x3ff3ae14 7ae147ae, se = 4*f14fb602SLionel Sambuc g_fmt gives "1.23" 5*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 6*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 3 digits: 7*f14fb602SLionel Sambuc123 8*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002 = 0x3ff3ae14 7ae147af: 9*f14fb602SLionel Sambuc g_fmt gives "1.2300000000000002" 10*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 17 digits: 11*f14fb602SLionel Sambuc12300000000000002 12*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999998 = 0x3ff3ae14 7ae147ad: 13*f14fb602SLionel Sambuc g_fmt gives "1.2299999999999998" 14*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 17 digits: 15*f14fb602SLionel Sambuc12299999999999998 16*f14fb602SLionel SambucInput: 1.23e+20 17*f14fb602SLionel SambucOutput: d = 18*f14fb602SLionel Sambuc1.23e+20 = 0x441aabdf 2145b430, se = 19*f14fb602SLionel Sambuc g_fmt gives "1.23e+20" 20*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 21*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 3 digits: 22*f14fb602SLionel Sambuc123 23*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002e+20 = 0x441aabdf 2145b431: 24*f14fb602SLionel Sambuc g_fmt gives "123000000000000020000" 25*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 17 digits: 26*f14fb602SLionel Sambuc12300000000000002 27*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999998e+20 = 0x441aabdf 2145b42f: 28*f14fb602SLionel Sambuc g_fmt gives "122999999999999980000" 29*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 17 digits: 30*f14fb602SLionel Sambuc12299999999999998 31*f14fb602SLionel SambucInput: 1.23e-20 32*f14fb602SLionel SambucOutput: d = 33*f14fb602SLionel Sambuc1.2300000000000001e-20 = 0x3bcd0ae4 cf767531, se = 34*f14fb602SLionel Sambuc g_fmt gives "1.23e-20" 35*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 36*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 3 digits: 37*f14fb602SLionel Sambuc123 38*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002e-20 = 0x3bcd0ae4 cf767532: 39*f14fb602SLionel Sambuc g_fmt gives "1.2300000000000002e-20" 40*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 17 digits: 41*f14fb602SLionel Sambuc12300000000000002 42*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999999e-20 = 0x3bcd0ae4 cf767530: 43*f14fb602SLionel Sambuc g_fmt gives "1.2299999999999999e-20" 44*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 17 digits: 45*f14fb602SLionel Sambuc12299999999999999 46*f14fb602SLionel SambucInput: 1.23456789 47*f14fb602SLionel SambucOutput: d = 48*f14fb602SLionel Sambuc1.2345678899999999 = 0x3ff3c0ca 4283de1b, se = 49*f14fb602SLionel Sambuc g_fmt gives "1.23456789" 50*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 51*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 9 digits: 52*f14fb602SLionel Sambuc123456789 53*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345678900000001 = 0x3ff3c0ca 4283de1c: 54*f14fb602SLionel Sambuc g_fmt gives "1.2345678900000001" 55*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 17 digits: 56*f14fb602SLionel Sambuc12345678900000001 57*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678899999997 = 0x3ff3c0ca 4283de1a: 58*f14fb602SLionel Sambuc g_fmt gives "1.2345678899999997" 59*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 17 digits: 60*f14fb602SLionel Sambuc12345678899999997 61*f14fb602SLionel SambucInput: 1.23456589e+20 62*f14fb602SLionel SambucOutput: d = 63*f14fb602SLionel Sambuc1.23456589e+20 = 0x441ac537 a660b997, se = 64*f14fb602SLionel Sambuc g_fmt gives "1.23456589e+20" 65*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 66*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 9 digits: 67*f14fb602SLionel Sambuc123456589 68*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345658900000001e+20 = 0x441ac537 a660b998: 69*f14fb602SLionel Sambuc g_fmt gives "123456589000000010000" 70*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 17 digits: 71*f14fb602SLionel Sambuc12345658900000001 72*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345658899999998e+20 = 0x441ac537 a660b996: 73*f14fb602SLionel Sambuc g_fmt gives "123456588999999980000" 74*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 17 digits: 75*f14fb602SLionel Sambuc12345658899999998 76*f14fb602SLionel SambucInput: 1.23e+30 77*f14fb602SLionel SambucOutput: d = 78*f14fb602SLionel Sambuc1.23e+30 = 0x462f0cb0 4e8fb790, se = 79*f14fb602SLionel Sambuc g_fmt gives "1.23e+30" 80*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 81*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 31, 3 digits: 82*f14fb602SLionel Sambuc123 83*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000001e+30 = 0x462f0cb0 4e8fb791: 84*f14fb602SLionel Sambuc g_fmt gives "1.2300000000000001e+30" 85*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 31, 17 digits: 86*f14fb602SLionel Sambuc12300000000000001 87*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999998e+30 = 0x462f0cb0 4e8fb78f: 88*f14fb602SLionel Sambuc g_fmt gives "1.2299999999999998e+30" 89*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 31, 17 digits: 90*f14fb602SLionel Sambuc12299999999999998 91*f14fb602SLionel SambucInput: 1.23e-30 92*f14fb602SLionel SambucOutput: d = 93*f14fb602SLionel Sambuc1.2300000000000001e-30 = 0x39b8f286 6f5010ab, se = 94*f14fb602SLionel Sambuc g_fmt gives "1.23e-30" 95*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 96*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -29, 3 digits: 97*f14fb602SLionel Sambuc123 98*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002e-30 = 0x39b8f286 6f5010ac: 99*f14fb602SLionel Sambuc g_fmt gives "1.2300000000000002e-30" 100*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -29, 17 digits: 101*f14fb602SLionel Sambuc12300000000000002 102*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999999e-30 = 0x39b8f286 6f5010aa: 103*f14fb602SLionel Sambuc g_fmt gives "1.2299999999999999e-30" 104*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -29, 17 digits: 105*f14fb602SLionel Sambuc12299999999999999 106*f14fb602SLionel SambucInput: 1.23456789e-20 107*f14fb602SLionel SambucOutput: d = 108*f14fb602SLionel Sambuc1.2345678899999999e-20 = 0x3bcd2681 471e7ada, se = 109*f14fb602SLionel Sambuc g_fmt gives "1.23456789e-20" 110*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 111*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 9 digits: 112*f14fb602SLionel Sambuc123456789 113*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345678900000001e-20 = 0x3bcd2681 471e7adb: 114*f14fb602SLionel Sambuc g_fmt gives "1.2345678900000001e-20" 115*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 17 digits: 116*f14fb602SLionel Sambuc12345678900000001 117*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678899999998e-20 = 0x3bcd2681 471e7ad9: 118*f14fb602SLionel Sambuc g_fmt gives "1.2345678899999998e-20" 119*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 17 digits: 120*f14fb602SLionel Sambuc12345678899999998 121*f14fb602SLionel SambucInput: 1.23456789e-30 122*f14fb602SLionel SambucOutput: d = 123*f14fb602SLionel Sambuc1.23456789e-30 = 0x39b90a3e 33bbd995, se = 124*f14fb602SLionel Sambuc g_fmt gives "1.23456789e-30" 125*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 126*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -29, 9 digits: 127*f14fb602SLionel Sambuc123456789 128*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345678900000002e-30 = 0x39b90a3e 33bbd996: 129*f14fb602SLionel Sambuc g_fmt gives "1.2345678900000002e-30" 130*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -29, 17 digits: 131*f14fb602SLionel Sambuc12345678900000002 132*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678899999998e-30 = 0x39b90a3e 33bbd994: 133*f14fb602SLionel Sambuc g_fmt gives "1.2345678899999998e-30" 134*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -29, 17 digits: 135*f14fb602SLionel Sambuc12345678899999998 136*f14fb602SLionel SambucInput: 1.234567890123456789 137*f14fb602SLionel SambucOutput: d = 138*f14fb602SLionel Sambuc1.2345678901234567 = 0x3ff3c0ca 428c59fb, se = 139*f14fb602SLionel Sambuc g_fmt gives "1.2345678901234567" 140*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 141*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 17 digits: 142*f14fb602SLionel Sambuc12345678901234567 143*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345678901234569 = 0x3ff3c0ca 428c59fc: 144*f14fb602SLionel Sambuc g_fmt gives "1.234567890123457" 145*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 16 digits: 146*f14fb602SLionel Sambuc1234567890123457 147*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678901234565 = 0x3ff3c0ca 428c59fa: 148*f14fb602SLionel Sambuc g_fmt gives "1.2345678901234565" 149*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 17 digits: 150*f14fb602SLionel Sambuc12345678901234565 151*f14fb602SLionel SambucInput: 1.23456789012345678901234567890123456789 152*f14fb602SLionel SambucOutput: d = 153*f14fb602SLionel Sambuc1.2345678901234567 = 0x3ff3c0ca 428c59fb, se = 154*f14fb602SLionel Sambuc g_fmt gives "1.2345678901234567" 155*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 156*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 17 digits: 157*f14fb602SLionel Sambuc12345678901234567 158*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345678901234569 = 0x3ff3c0ca 428c59fc: 159*f14fb602SLionel Sambuc g_fmt gives "1.234567890123457" 160*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 16 digits: 161*f14fb602SLionel Sambuc1234567890123457 162*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678901234565 = 0x3ff3c0ca 428c59fa: 163*f14fb602SLionel Sambuc g_fmt gives "1.2345678901234565" 164*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 17 digits: 165*f14fb602SLionel Sambuc12345678901234565 166*f14fb602SLionel SambucInput: 1.23e306 167*f14fb602SLionel SambucOutput: d = 168*f14fb602SLionel Sambuc1.23e+306 = 0x7f7c0676 cd1c61f5, se = 169*f14fb602SLionel Sambuc g_fmt gives "1.23e+306" 170*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 171*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 307, 3 digits: 172*f14fb602SLionel Sambuc123 173*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002e+306 = 0x7f7c0676 cd1c61f6: 174*f14fb602SLionel Sambuc g_fmt gives "1.2300000000000002e+306" 175*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 307, 17 digits: 176*f14fb602SLionel Sambuc12300000000000002 177*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999999e+306 = 0x7f7c0676 cd1c61f4: 178*f14fb602SLionel Sambuc g_fmt gives "1.2299999999999999e+306" 179*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 307, 17 digits: 180*f14fb602SLionel Sambuc12299999999999999 181*f14fb602SLionel SambucInput: 1.23e-306 182*f14fb602SLionel SambucOutput: d = 183*f14fb602SLionel Sambuc1.23e-306 = 0x6ba3b8 5da396e8, se = 184*f14fb602SLionel Sambuc g_fmt gives "1.23e-306" 185*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 186*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -305, 3 digits: 187*f14fb602SLionel Sambuc123 188*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002e-306 = 0x6ba3b8 5da396e9: 189*f14fb602SLionel Sambuc g_fmt gives "1.2300000000000002e-306" 190*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -305, 17 digits: 191*f14fb602SLionel Sambuc12300000000000002 192*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999999e-306 = 0x6ba3b8 5da396e7: 193*f14fb602SLionel Sambuc g_fmt gives "1.2299999999999999e-306" 194*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -305, 17 digits: 195*f14fb602SLionel Sambuc12299999999999999 196*f14fb602SLionel SambucInput: 1.23e-320 197*f14fb602SLionel SambucOutput: d = 198*f14fb602SLionel Sambuc1.2302234581447039e-320 = 0x0 9ba, se = 199*f14fb602SLionel Sambuc g_fmt gives "1.23e-320" 200*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 201*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -319, 3 digits: 202*f14fb602SLionel Sambuc123 203*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2307175237905451e-320 = 0x0 9bb: 204*f14fb602SLionel Sambuc g_fmt gives "1.2307e-320" 205*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -319, 5 digits: 206*f14fb602SLionel Sambuc12307 207*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2297293924988626e-320 = 0x0 9b9: 208*f14fb602SLionel Sambuc g_fmt gives "1.2297e-320" 209*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -319, 5 digits: 210*f14fb602SLionel Sambuc12297 211*f14fb602SLionel SambucInput: 1.23e-20 212*f14fb602SLionel SambucOutput: d = 213*f14fb602SLionel Sambuc1.2300000000000001e-20 = 0x3bcd0ae4 cf767531, se = 214*f14fb602SLionel Sambuc g_fmt gives "1.23e-20" 215*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 216*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 3 digits: 217*f14fb602SLionel Sambuc123 218*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002e-20 = 0x3bcd0ae4 cf767532: 219*f14fb602SLionel Sambuc g_fmt gives "1.2300000000000002e-20" 220*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 17 digits: 221*f14fb602SLionel Sambuc12300000000000002 222*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999999e-20 = 0x3bcd0ae4 cf767530: 223*f14fb602SLionel Sambuc g_fmt gives "1.2299999999999999e-20" 224*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 17 digits: 225*f14fb602SLionel Sambuc12299999999999999 226*f14fb602SLionel SambucInput: 1.23456789e307 227*f14fb602SLionel SambucOutput: d = 228*f14fb602SLionel Sambuc1.23456789e+307 = 0x7fb194b1 4bdaecdc, se = 229*f14fb602SLionel Sambuc g_fmt gives "1.23456789e+307" 230*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 231*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 308, 9 digits: 232*f14fb602SLionel Sambuc123456789 233*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345678900000003e+307 = 0x7fb194b1 4bdaecdd: 234*f14fb602SLionel Sambuc g_fmt gives "1.2345678900000003e+307" 235*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 308, 17 digits: 236*f14fb602SLionel Sambuc12345678900000003 237*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678899999998e+307 = 0x7fb194b1 4bdaecdb: 238*f14fb602SLionel Sambuc g_fmt gives "1.2345678899999998e+307" 239*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 308, 17 digits: 240*f14fb602SLionel Sambuc12345678899999998 241*f14fb602SLionel SambucInput: 1.23456589e-307 242*f14fb602SLionel SambucOutput: d = 243*f14fb602SLionel Sambuc1.2345658899999999e-307 = 0x363196 bb9845fa, se = 244*f14fb602SLionel Sambuc g_fmt gives "1.23456589e-307" 245*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 246*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -306, 9 digits: 247*f14fb602SLionel Sambuc123456589 248*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345658900000001e-307 = 0x363196 bb9845fb: 249*f14fb602SLionel Sambuc g_fmt gives "1.2345658900000001e-307" 250*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -306, 17 digits: 251*f14fb602SLionel Sambuc12345658900000001 252*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345658899999997e-307 = 0x363196 bb9845f9: 253*f14fb602SLionel Sambuc g_fmt gives "1.2345658899999997e-307" 254*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -306, 17 digits: 255*f14fb602SLionel Sambuc12345658899999997 256*f14fb602SLionel SambucInput: 1.234567890123456789 257*f14fb602SLionel SambucOutput: d = 258*f14fb602SLionel Sambuc1.2345678901234567 = 0x3ff3c0ca 428c59fb, se = 259*f14fb602SLionel Sambuc g_fmt gives "1.2345678901234567" 260*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 261*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 17 digits: 262*f14fb602SLionel Sambuc12345678901234567 263*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345678901234569 = 0x3ff3c0ca 428c59fc: 264*f14fb602SLionel Sambuc g_fmt gives "1.234567890123457" 265*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 16 digits: 266*f14fb602SLionel Sambuc1234567890123457 267*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678901234565 = 0x3ff3c0ca 428c59fa: 268*f14fb602SLionel Sambuc g_fmt gives "1.2345678901234565" 269*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 17 digits: 270*f14fb602SLionel Sambuc12345678901234565 271*f14fb602SLionel SambucInput: 1.234567890123456789e301 272*f14fb602SLionel SambucOutput: d = 273*f14fb602SLionel Sambuc1.2345678901234568e+301 = 0x7e726f51 75f56413, se = 274*f14fb602SLionel Sambuc g_fmt gives "1.2345678901234568e+301" 275*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 276*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 302, 17 digits: 277*f14fb602SLionel Sambuc12345678901234568 278*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.234567890123457e+301 = 0x7e726f51 75f56414: 279*f14fb602SLionel Sambuc g_fmt gives "1.234567890123457e+301" 280*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 302, 16 digits: 281*f14fb602SLionel Sambuc1234567890123457 282*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678901234565e+301 = 0x7e726f51 75f56412: 283*f14fb602SLionel Sambuc g_fmt gives "1.2345678901234565e+301" 284*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 302, 17 digits: 285*f14fb602SLionel Sambuc12345678901234565 286*f14fb602SLionel SambucInput: 1.234567890123456789e-301 287*f14fb602SLionel SambucOutput: d = 288*f14fb602SLionel Sambuc1.2345678901234567e-301 = 0x1752a64 e34ba0d3, se = 289*f14fb602SLionel Sambuc g_fmt gives "1.2345678901234567e-301" 290*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 291*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -300, 17 digits: 292*f14fb602SLionel Sambuc12345678901234567 293*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345678901234569e-301 = 0x1752a64 e34ba0d4: 294*f14fb602SLionel Sambuc g_fmt gives "1.234567890123457e-301" 295*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -300, 16 digits: 296*f14fb602SLionel Sambuc1234567890123457 297*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678901234565e-301 = 0x1752a64 e34ba0d2: 298*f14fb602SLionel Sambuc g_fmt gives "1.2345678901234565e-301" 299*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -300, 17 digits: 300*f14fb602SLionel Sambuc12345678901234565 301*f14fb602SLionel SambucInput: 1.234567890123456789e-321 302*f14fb602SLionel SambucOutput: d = 303*f14fb602SLionel Sambuc1.2351641146031164e-321 = 0x0 fa, se = 304*f14fb602SLionel Sambuc g_fmt gives "1.235e-321" 305*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 306*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -320, 4 digits: 307*f14fb602SLionel Sambuc1235 308*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2401047710615288e-321 = 0x0 fb: 309*f14fb602SLionel Sambuc g_fmt gives "1.24e-321" 310*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -320, 3 digits: 311*f14fb602SLionel Sambuc124 312*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2302234581447039e-321 = 0x0 f9: 313*f14fb602SLionel Sambuc g_fmt gives "1.23e-321" 314*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -320, 3 digits: 315*f14fb602SLionel Sambuc123 316*f14fb602SLionel SambucInput: 1e23 317*f14fb602SLionel SambucOutput: d = 318*f14fb602SLionel Sambuc9.9999999999999992e+22 = 0x44b52d02 c7e14af6, se = 319*f14fb602SLionel Sambuc g_fmt gives "1e+23" 320*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 321*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 24, 1 digits: 322*f14fb602SLionel Sambuc1 323*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.0000000000000001e+23 = 0x44b52d02 c7e14af7: 324*f14fb602SLionel Sambuc g_fmt gives "1.0000000000000001e+23" 325*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 24, 17 digits: 326*f14fb602SLionel Sambuc10000000000000001 327*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 9.9999999999999975e+22 = 0x44b52d02 c7e14af5: 328*f14fb602SLionel Sambuc g_fmt gives "9.999999999999997e+22" 329*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 23, 16 digits: 330*f14fb602SLionel Sambuc9999999999999997 331*f14fb602SLionel SambucInput: 1e310 332*f14fb602SLionel SambucOutput: d = 333*f14fb602SLionel SambucInfinity = 0x7ff00000 0, se = 334*f14fb602SLionel Sambuc g_fmt gives "Infinity" 335*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 336*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 9999, 8 digits: 337*f14fb602SLionel SambucInfinity 338*f14fb602SLionel SambucInput: 9.0259718793241475e-277 339*f14fb602SLionel SambucOutput: d = 340*f14fb602SLionel Sambuc9.0259718793241479e-277 = 0x6a00000 0, se = 341*f14fb602SLionel Sambuc g_fmt gives "9.025971879324148e-277" 342*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 343*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -276, 16 digits: 344*f14fb602SLionel Sambuc9025971879324148 345*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 9.0259718793241499e-277 = 0x6a00000 1: 346*f14fb602SLionel Sambuc g_fmt gives "9.02597187932415e-277" 347*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -276, 15 digits: 348*f14fb602SLionel Sambuc902597187932415 349*f14fb602SLionel SambucInput: 9.025971879324147880346310405869e-277 350*f14fb602SLionel SambucOutput: d = 351*f14fb602SLionel Sambuc9.0259718793241479e-277 = 0x6a00000 0, se = 352*f14fb602SLionel Sambuc g_fmt gives "9.025971879324148e-277" 353*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 354*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -276, 16 digits: 355*f14fb602SLionel Sambuc9025971879324148 356*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 9.0259718793241499e-277 = 0x6a00000 1: 357*f14fb602SLionel Sambuc g_fmt gives "9.02597187932415e-277" 358*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -276, 15 digits: 359*f14fb602SLionel Sambuc902597187932415 360*f14fb602SLionel SambucInput: 9.025971879324147880346310405868e-277 361*f14fb602SLionel SambucOutput: d = 362*f14fb602SLionel Sambuc9.0259718793241479e-277 = 0x6a00000 0, se = 363*f14fb602SLionel Sambuc g_fmt gives "9.025971879324148e-277" 364*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 365*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -276, 16 digits: 366*f14fb602SLionel Sambuc9025971879324148 367*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 9.0259718793241499e-277 = 0x6a00000 1: 368*f14fb602SLionel Sambuc g_fmt gives "9.02597187932415e-277" 369*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -276, 15 digits: 370*f14fb602SLionel Sambuc902597187932415 371*f14fb602SLionel SambucInput: 2.2250738585072014e-308 372*f14fb602SLionel SambucOutput: d = 373*f14fb602SLionel Sambuc2.2250738585072014e-308 = 0x100000 0, se = 374*f14fb602SLionel Sambuc g_fmt gives "2.2250738585072014e-308" 375*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 376*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -307, 17 digits: 377*f14fb602SLionel Sambuc22250738585072014 378*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 2.2250738585072019e-308 = 0x100000 1: 379*f14fb602SLionel Sambuc g_fmt gives "2.225073858507202e-308" 380*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -307, 16 digits: 381*f14fb602SLionel Sambuc2225073858507202 382*f14fb602SLionel SambucInput: 2.2250738585072013e-308 383*f14fb602SLionel SambucOutput: d = 384*f14fb602SLionel Sambuc2.2250738585072014e-308 = 0x100000 0, se = 385*f14fb602SLionel Sambuc g_fmt gives "2.2250738585072014e-308" 386*f14fb602SLionel Sambuc dtoa(mode = 0, ndigits = 17): 387*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -307, 17 digits: 388*f14fb602SLionel Sambuc22250738585072014 389*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 2.2250738585072019e-308 = 0x100000 1: 390*f14fb602SLionel Sambuc g_fmt gives "2.225073858507202e-308" 391*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -307, 16 digits: 392*f14fb602SLionel Sambuc2225073858507202 393*f14fb602SLionel SambucInput: 1.23:2 6 394*f14fb602SLionel SambucOutput: d = 395*f14fb602SLionel Sambuc1.23 = 0x3ff3ae14 7ae147ae, se = :2 6 396*f14fb602SLionel Sambuc g_fmt gives "1.23" 397*f14fb602SLionel Sambuc dtoa(mode = 2, ndigits = 6): 398*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 3 digits: 399*f14fb602SLionel Sambuc123 400*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002 = 0x3ff3ae14 7ae147af: 401*f14fb602SLionel Sambuc g_fmt gives "1.2300000000000002" 402*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 3 digits: 403*f14fb602SLionel Sambuc123 404*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999998 = 0x3ff3ae14 7ae147ad: 405*f14fb602SLionel Sambuc g_fmt gives "1.2299999999999998" 406*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 3 digits: 407*f14fb602SLionel Sambuc123 408*f14fb602SLionel SambucInput: 1.23:4 6 409*f14fb602SLionel SambucOutput: d = 410*f14fb602SLionel Sambuc1.23 = 0x3ff3ae14 7ae147ae, se = :4 6 411*f14fb602SLionel Sambuc g_fmt gives "1.23" 412*f14fb602SLionel Sambuc dtoa(mode = 4, ndigits = 6): 413*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 3 digits: 414*f14fb602SLionel Sambuc123 415*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002 = 0x3ff3ae14 7ae147af: 416*f14fb602SLionel Sambuc g_fmt gives "1.2300000000000002" 417*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 3 digits: 418*f14fb602SLionel Sambuc123 419*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999998 = 0x3ff3ae14 7ae147ad: 420*f14fb602SLionel Sambuc g_fmt gives "1.2299999999999998" 421*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 3 digits: 422*f14fb602SLionel Sambuc123 423*f14fb602SLionel SambucInput: 1.23e+20:2 6 424*f14fb602SLionel SambucOutput: d = 425*f14fb602SLionel Sambuc1.23e+20 = 0x441aabdf 2145b430, se = :2 6 426*f14fb602SLionel Sambuc g_fmt gives "1.23e+20" 427*f14fb602SLionel Sambuc dtoa(mode = 2, ndigits = 6): 428*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 3 digits: 429*f14fb602SLionel Sambuc123 430*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002e+20 = 0x441aabdf 2145b431: 431*f14fb602SLionel Sambuc g_fmt gives "123000000000000020000" 432*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 3 digits: 433*f14fb602SLionel Sambuc123 434*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999998e+20 = 0x441aabdf 2145b42f: 435*f14fb602SLionel Sambuc g_fmt gives "122999999999999980000" 436*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 3 digits: 437*f14fb602SLionel Sambuc123 438*f14fb602SLionel SambucInput: 1.23e+20:4 6 439*f14fb602SLionel SambucOutput: d = 440*f14fb602SLionel Sambuc1.23e+20 = 0x441aabdf 2145b430, se = :4 6 441*f14fb602SLionel Sambuc g_fmt gives "1.23e+20" 442*f14fb602SLionel Sambuc dtoa(mode = 4, ndigits = 6): 443*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 3 digits: 444*f14fb602SLionel Sambuc123 445*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002e+20 = 0x441aabdf 2145b431: 446*f14fb602SLionel Sambuc g_fmt gives "123000000000000020000" 447*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 3 digits: 448*f14fb602SLionel Sambuc123 449*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999998e+20 = 0x441aabdf 2145b42f: 450*f14fb602SLionel Sambuc g_fmt gives "122999999999999980000" 451*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 3 digits: 452*f14fb602SLionel Sambuc123 453*f14fb602SLionel SambucInput: 1.23e-20:2 6 454*f14fb602SLionel SambucOutput: d = 455*f14fb602SLionel Sambuc1.2300000000000001e-20 = 0x3bcd0ae4 cf767531, se = :2 6 456*f14fb602SLionel Sambuc g_fmt gives "1.23e-20" 457*f14fb602SLionel Sambuc dtoa(mode = 2, ndigits = 6): 458*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 3 digits: 459*f14fb602SLionel Sambuc123 460*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002e-20 = 0x3bcd0ae4 cf767532: 461*f14fb602SLionel Sambuc g_fmt gives "1.2300000000000002e-20" 462*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 3 digits: 463*f14fb602SLionel Sambuc123 464*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999999e-20 = 0x3bcd0ae4 cf767530: 465*f14fb602SLionel Sambuc g_fmt gives "1.2299999999999999e-20" 466*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 3 digits: 467*f14fb602SLionel Sambuc123 468*f14fb602SLionel SambucInput: 1.23e-20:4 6 469*f14fb602SLionel SambucOutput: d = 470*f14fb602SLionel Sambuc1.2300000000000001e-20 = 0x3bcd0ae4 cf767531, se = :4 6 471*f14fb602SLionel Sambuc g_fmt gives "1.23e-20" 472*f14fb602SLionel Sambuc dtoa(mode = 4, ndigits = 6): 473*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 3 digits: 474*f14fb602SLionel Sambuc123 475*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2300000000000002e-20 = 0x3bcd0ae4 cf767532: 476*f14fb602SLionel Sambuc g_fmt gives "1.2300000000000002e-20" 477*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 3 digits: 478*f14fb602SLionel Sambuc123 479*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2299999999999999e-20 = 0x3bcd0ae4 cf767530: 480*f14fb602SLionel Sambuc g_fmt gives "1.2299999999999999e-20" 481*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 3 digits: 482*f14fb602SLionel Sambuc123 483*f14fb602SLionel SambucInput: 1.23456789:2 6 484*f14fb602SLionel SambucOutput: d = 485*f14fb602SLionel Sambuc1.2345678899999999 = 0x3ff3c0ca 4283de1b, se = :2 6 486*f14fb602SLionel Sambuc g_fmt gives "1.23456789" 487*f14fb602SLionel Sambuc dtoa(mode = 2, ndigits = 6): 488*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 6 digits: 489*f14fb602SLionel Sambuc123457 490*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345678900000001 = 0x3ff3c0ca 4283de1c: 491*f14fb602SLionel Sambuc g_fmt gives "1.2345678900000001" 492*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 6 digits: 493*f14fb602SLionel Sambuc123457 494*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678899999997 = 0x3ff3c0ca 4283de1a: 495*f14fb602SLionel Sambuc g_fmt gives "1.2345678899999997" 496*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 6 digits: 497*f14fb602SLionel Sambuc123457 498*f14fb602SLionel SambucInput: 1.23456789:4 6 499*f14fb602SLionel SambucOutput: d = 500*f14fb602SLionel Sambuc1.2345678899999999 = 0x3ff3c0ca 4283de1b, se = :4 6 501*f14fb602SLionel Sambuc g_fmt gives "1.23456789" 502*f14fb602SLionel Sambuc dtoa(mode = 4, ndigits = 6): 503*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 6 digits: 504*f14fb602SLionel Sambuc123457 505*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345678900000001 = 0x3ff3c0ca 4283de1c: 506*f14fb602SLionel Sambuc g_fmt gives "1.2345678900000001" 507*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 6 digits: 508*f14fb602SLionel Sambuc123457 509*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678899999997 = 0x3ff3c0ca 4283de1a: 510*f14fb602SLionel Sambuc g_fmt gives "1.2345678899999997" 511*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 6 digits: 512*f14fb602SLionel Sambuc123457 513*f14fb602SLionel SambucInput: 1.23456589e+20:2 6 514*f14fb602SLionel SambucOutput: d = 515*f14fb602SLionel Sambuc1.23456589e+20 = 0x441ac537 a660b997, se = :2 6 516*f14fb602SLionel Sambuc g_fmt gives "1.23456589e+20" 517*f14fb602SLionel Sambuc dtoa(mode = 2, ndigits = 6): 518*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 6 digits: 519*f14fb602SLionel Sambuc123457 520*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345658900000001e+20 = 0x441ac537 a660b998: 521*f14fb602SLionel Sambuc g_fmt gives "123456589000000010000" 522*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 6 digits: 523*f14fb602SLionel Sambuc123457 524*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345658899999998e+20 = 0x441ac537 a660b996: 525*f14fb602SLionel Sambuc g_fmt gives "123456588999999980000" 526*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 6 digits: 527*f14fb602SLionel Sambuc123457 528*f14fb602SLionel SambucInput: 1.23456589e+20:4 6 529*f14fb602SLionel SambucOutput: d = 530*f14fb602SLionel Sambuc1.23456589e+20 = 0x441ac537 a660b997, se = :4 6 531*f14fb602SLionel Sambuc g_fmt gives "1.23456589e+20" 532*f14fb602SLionel Sambuc dtoa(mode = 4, ndigits = 6): 533*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 6 digits: 534*f14fb602SLionel Sambuc123457 535*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345658900000001e+20 = 0x441ac537 a660b998: 536*f14fb602SLionel Sambuc g_fmt gives "123456589000000010000" 537*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 6 digits: 538*f14fb602SLionel Sambuc123457 539*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345658899999998e+20 = 0x441ac537 a660b996: 540*f14fb602SLionel Sambuc g_fmt gives "123456588999999980000" 541*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 6 digits: 542*f14fb602SLionel Sambuc123457 543*f14fb602SLionel SambucInput: 1.23456789e-20:2 6 544*f14fb602SLionel SambucOutput: d = 545*f14fb602SLionel Sambuc1.2345678899999999e-20 = 0x3bcd2681 471e7ada, se = :2 6 546*f14fb602SLionel Sambuc g_fmt gives "1.23456789e-20" 547*f14fb602SLionel Sambuc dtoa(mode = 2, ndigits = 6): 548*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 6 digits: 549*f14fb602SLionel Sambuc123457 550*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345678900000001e-20 = 0x3bcd2681 471e7adb: 551*f14fb602SLionel Sambuc g_fmt gives "1.2345678900000001e-20" 552*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 6 digits: 553*f14fb602SLionel Sambuc123457 554*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678899999998e-20 = 0x3bcd2681 471e7ad9: 555*f14fb602SLionel Sambuc g_fmt gives "1.2345678899999998e-20" 556*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 6 digits: 557*f14fb602SLionel Sambuc123457 558*f14fb602SLionel SambucInput: 1.23456789e-20:4 6 559*f14fb602SLionel SambucOutput: d = 560*f14fb602SLionel Sambuc1.2345678899999999e-20 = 0x3bcd2681 471e7ada, se = :4 6 561*f14fb602SLionel Sambuc g_fmt gives "1.23456789e-20" 562*f14fb602SLionel Sambuc dtoa(mode = 4, ndigits = 6): 563*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 6 digits: 564*f14fb602SLionel Sambuc123457 565*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345678900000001e-20 = 0x3bcd2681 471e7adb: 566*f14fb602SLionel Sambuc g_fmt gives "1.2345678900000001e-20" 567*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 6 digits: 568*f14fb602SLionel Sambuc123457 569*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345678899999998e-20 = 0x3bcd2681 471e7ad9: 570*f14fb602SLionel Sambuc g_fmt gives "1.2345678899999998e-20" 571*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 6 digits: 572*f14fb602SLionel Sambuc123457 573*f14fb602SLionel SambucInput: 1234565:2 6 574*f14fb602SLionel SambucOutput: d = 575*f14fb602SLionel Sambuc1234565 = 0x4132d685 0, se = :2 6 576*f14fb602SLionel Sambuc g_fmt gives "1234565" 577*f14fb602SLionel Sambuc dtoa(mode = 2, ndigits = 6): 578*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 7, 6 digits: 579*f14fb602SLionel Sambuc123456 580*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1234565.0000000002 = 0x4132d685 1: 581*f14fb602SLionel Sambuc g_fmt gives "1234565.0000000002" 582*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 7, 6 digits: 583*f14fb602SLionel Sambuc123457 584*f14fb602SLionel SambucInput: 1234565:4 6 585*f14fb602SLionel SambucOutput: d = 586*f14fb602SLionel Sambuc1234565 = 0x4132d685 0, se = :4 6 587*f14fb602SLionel Sambuc g_fmt gives "1234565" 588*f14fb602SLionel Sambuc dtoa(mode = 4, ndigits = 6): 589*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 7, 6 digits: 590*f14fb602SLionel Sambuc123456 591*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1234565.0000000002 = 0x4132d685 1: 592*f14fb602SLionel Sambuc g_fmt gives "1234565.0000000002" 593*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 7, 6 digits: 594*f14fb602SLionel Sambuc123457 595*f14fb602SLionel SambucInput: 1.234565:2 6 596*f14fb602SLionel SambucOutput: d = 597*f14fb602SLionel Sambuc1.2345649999999999 = 0x3ff3c0c7 3abc9470, se = :2 6 598*f14fb602SLionel Sambuc g_fmt gives "1.234565" 599*f14fb602SLionel Sambuc dtoa(mode = 2, ndigits = 6): 600*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 6 digits: 601*f14fb602SLionel Sambuc123456 602*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345650000000001 = 0x3ff3c0c7 3abc9471: 603*f14fb602SLionel Sambuc g_fmt gives "1.2345650000000001" 604*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 6 digits: 605*f14fb602SLionel Sambuc123457 606*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345649999999997 = 0x3ff3c0c7 3abc946f: 607*f14fb602SLionel Sambuc g_fmt gives "1.2345649999999997" 608*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 6 digits: 609*f14fb602SLionel Sambuc123456 610*f14fb602SLionel SambucInput: 1.234565:4 6 611*f14fb602SLionel SambucOutput: d = 612*f14fb602SLionel Sambuc1.2345649999999999 = 0x3ff3c0c7 3abc9470, se = :4 6 613*f14fb602SLionel Sambuc g_fmt gives "1.234565" 614*f14fb602SLionel Sambuc dtoa(mode = 4, ndigits = 6): 615*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 6 digits: 616*f14fb602SLionel Sambuc123456 617*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345650000000001 = 0x3ff3c0c7 3abc9471: 618*f14fb602SLionel Sambuc g_fmt gives "1.2345650000000001" 619*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 6 digits: 620*f14fb602SLionel Sambuc123457 621*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345649999999997 = 0x3ff3c0c7 3abc946f: 622*f14fb602SLionel Sambuc g_fmt gives "1.2345649999999997" 623*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 1, 6 digits: 624*f14fb602SLionel Sambuc123456 625*f14fb602SLionel SambucInput: 1.234565e+20:2 6 626*f14fb602SLionel SambucOutput: d = 627*f14fb602SLionel Sambuc1.234565e+20 = 0x441ac536 6299040d, se = :2 6 628*f14fb602SLionel Sambuc g_fmt gives "1.234565e+20" 629*f14fb602SLionel Sambuc dtoa(mode = 2, ndigits = 6): 630*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 6 digits: 631*f14fb602SLionel Sambuc123456 632*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345650000000002e+20 = 0x441ac536 6299040e: 633*f14fb602SLionel Sambuc g_fmt gives "123456500000000020000" 634*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 6 digits: 635*f14fb602SLionel Sambuc123457 636*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345649999999998e+20 = 0x441ac536 6299040c: 637*f14fb602SLionel Sambuc g_fmt gives "123456499999999980000" 638*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 6 digits: 639*f14fb602SLionel Sambuc123456 640*f14fb602SLionel SambucInput: 1.234565e+20:4 6 641*f14fb602SLionel SambucOutput: d = 642*f14fb602SLionel Sambuc1.234565e+20 = 0x441ac536 6299040d, se = :4 6 643*f14fb602SLionel Sambuc g_fmt gives "1.234565e+20" 644*f14fb602SLionel Sambuc dtoa(mode = 4, ndigits = 6): 645*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 6 digits: 646*f14fb602SLionel Sambuc123456 647*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345650000000002e+20 = 0x441ac536 6299040e: 648*f14fb602SLionel Sambuc g_fmt gives "123456500000000020000" 649*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 6 digits: 650*f14fb602SLionel Sambuc123457 651*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345649999999998e+20 = 0x441ac536 6299040c: 652*f14fb602SLionel Sambuc g_fmt gives "123456499999999980000" 653*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = 21, 6 digits: 654*f14fb602SLionel Sambuc123456 655*f14fb602SLionel SambucInput: 1.234565e-20:2 6 656*f14fb602SLionel SambucOutput: d = 657*f14fb602SLionel Sambuc1.234565e-20 = 0x3bcd267c ce45a93f, se = :2 6 658*f14fb602SLionel Sambuc g_fmt gives "1.234565e-20" 659*f14fb602SLionel Sambuc dtoa(mode = 2, ndigits = 6): 660*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 6 digits: 661*f14fb602SLionel Sambuc123456 662*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345650000000001e-20 = 0x3bcd267c ce45a940: 663*f14fb602SLionel Sambuc g_fmt gives "1.2345650000000001e-20" 664*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 6 digits: 665*f14fb602SLionel Sambuc123457 666*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345649999999998e-20 = 0x3bcd267c ce45a93e: 667*f14fb602SLionel Sambuc g_fmt gives "1.2345649999999998e-20" 668*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 6 digits: 669*f14fb602SLionel Sambuc123456 670*f14fb602SLionel SambucInput: 1.234565e-20:4 6 671*f14fb602SLionel SambucOutput: d = 672*f14fb602SLionel Sambuc1.234565e-20 = 0x3bcd267c ce45a93f, se = :4 6 673*f14fb602SLionel Sambuc g_fmt gives "1.234565e-20" 674*f14fb602SLionel Sambuc dtoa(mode = 4, ndigits = 6): 675*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 6 digits: 676*f14fb602SLionel Sambuc123456 677*f14fb602SLionel Sambuc nextafter(d,+Infinity) = 1.2345650000000001e-20 = 0x3bcd267c ce45a940: 678*f14fb602SLionel Sambuc g_fmt gives "1.2345650000000001e-20" 679*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 6 digits: 680*f14fb602SLionel Sambuc123457 681*f14fb602SLionel Sambuc nextafter(d,-Infinity) = 1.2345649999999998e-20 = 0x3bcd267c ce45a93e: 682*f14fb602SLionel Sambuc g_fmt gives "1.2345649999999998e-20" 683*f14fb602SLionel Sambuc dtoa returns sign = 0, decpt = -19, 6 digits: 684*f14fb602SLionel Sambuc123456 685