| 1 |
|
| 2 |
Input: 1.23 |
| 3 |
strtord consumes 4 bytes and returns 17 with f = 1.23 = #3ff3ae14 7ae147ae |
| 4 |
g_dfmt(0) gives 4 bytes: "1.23" |
| 5 |
|
| 6 |
strtoId returns 17, consuming 4 bytes. |
| 7 |
fI[0] = #3ff3ae14 7ae147ae = 1.23 |
| 8 |
fI[1] = #3ff3ae14 7ae147af = 1.2300000000000002 |
| 9 |
fI[0] == strtod |
| 10 |
|
| 11 |
|
| 12 |
Input: 1.23e+20 |
| 13 |
strtord consumes 8 bytes and returns 1 with f = 1.23e+20 = #441aabdf 2145b430 |
| 14 |
g_dfmt(0) gives 8 bytes: "1.23e+20" |
| 15 |
|
| 16 |
strtoId returns 1, consuming 8 bytes. |
| 17 |
fI[0] == fI[1] == strtod |
| 18 |
|
| 19 |
|
| 20 |
Input: 1.23e-20 |
| 21 |
strtord consumes 8 bytes and returns 33 with f = 1.2300000000000001e-20 = #3bcd0ae4 cf767531 |
| 22 |
g_dfmt(0) gives 8 bytes: "1.23e-20" |
| 23 |
|
| 24 |
strtoId returns 33, consuming 8 bytes. |
| 25 |
fI[0] = #3bcd0ae4 cf767530 = 1.2299999999999999e-20 |
| 26 |
fI[1] = #3bcd0ae4 cf767531 = 1.2300000000000001e-20 |
| 27 |
fI[1] == strtod |
| 28 |
|
| 29 |
|
| 30 |
Input: 1.23456789 |
| 31 |
strtord consumes 10 bytes and returns 17 with f = 1.2345678899999999 = #3ff3c0ca 4283de1b |
| 32 |
g_dfmt(0) gives 10 bytes: "1.23456789" |
| 33 |
|
| 34 |
strtoId returns 17, consuming 10 bytes. |
| 35 |
fI[0] = #3ff3c0ca 4283de1b = 1.2345678899999999 |
| 36 |
fI[1] = #3ff3c0ca 4283de1c = 1.2345678900000001 |
| 37 |
fI[0] == strtod |
| 38 |
|
| 39 |
|
| 40 |
Input: 1.23456589e+20 |
| 41 |
strtord consumes 14 bytes and returns 17 with f = 1.23456589e+20 = #441ac537 a660b997 |
| 42 |
g_dfmt(0) gives 14 bytes: "1.23456589e+20" |
| 43 |
|
| 44 |
strtoId returns 17, consuming 14 bytes. |
| 45 |
fI[0] = #441ac537 a660b997 = 1.23456589e+20 |
| 46 |
fI[1] = #441ac537 a660b998 = 1.2345658900000001e+20 |
| 47 |
fI[0] == strtod |
| 48 |
|
| 49 |
|
| 50 |
Input: 1.23e+30 |
| 51 |
strtord consumes 8 bytes and returns 17 with f = 1.23e+30 = #462f0cb0 4e8fb790 |
| 52 |
g_dfmt(0) gives 8 bytes: "1.23e+30" |
| 53 |
|
| 54 |
strtoId returns 17, consuming 8 bytes. |
| 55 |
fI[0] = #462f0cb0 4e8fb790 = 1.23e+30 |
| 56 |
fI[1] = #462f0cb0 4e8fb791 = 1.2300000000000001e+30 |
| 57 |
fI[0] == strtod |
| 58 |
|
| 59 |
|
| 60 |
Input: 1.23e-30 |
| 61 |
strtord consumes 8 bytes and returns 33 with f = 1.2300000000000001e-30 = #39b8f286 6f5010ab |
| 62 |
g_dfmt(0) gives 8 bytes: "1.23e-30" |
| 63 |
|
| 64 |
strtoId returns 33, consuming 8 bytes. |
| 65 |
fI[0] = #39b8f286 6f5010aa = 1.2299999999999999e-30 |
| 66 |
fI[1] = #39b8f286 6f5010ab = 1.2300000000000001e-30 |
| 67 |
fI[1] == strtod |
| 68 |
|
| 69 |
|
| 70 |
Input: 1.23456789e-20 |
| 71 |
strtord consumes 14 bytes and returns 17 with f = 1.2345678899999999e-20 = #3bcd2681 471e7ada |
| 72 |
g_dfmt(0) gives 14 bytes: "1.23456789e-20" |
| 73 |
|
| 74 |
strtoId returns 17, consuming 14 bytes. |
| 75 |
fI[0] = #3bcd2681 471e7ada = 1.2345678899999999e-20 |
| 76 |
fI[1] = #3bcd2681 471e7adb = 1.2345678900000001e-20 |
| 77 |
fI[0] == strtod |
| 78 |
|
| 79 |
|
| 80 |
Input: 1.23456789e-30 |
| 81 |
strtord consumes 14 bytes and returns 17 with f = 1.23456789e-30 = #39b90a3e 33bbd995 |
| 82 |
g_dfmt(0) gives 14 bytes: "1.23456789e-30" |
| 83 |
|
| 84 |
strtoId returns 17, consuming 14 bytes. |
| 85 |
fI[0] = #39b90a3e 33bbd995 = 1.23456789e-30 |
| 86 |
fI[1] = #39b90a3e 33bbd996 = 1.2345678900000002e-30 |
| 87 |
fI[0] == strtod |
| 88 |
|
| 89 |
|
| 90 |
Input: 1.234567890123456789 |
| 91 |
strtord consumes 20 bytes and returns 17 with f = 1.2345678901234567 = #3ff3c0ca 428c59fb |
| 92 |
g_dfmt(0) gives 18 bytes: "1.2345678901234567" |
| 93 |
|
| 94 |
strtoId returns 17, consuming 20 bytes. |
| 95 |
fI[0] = #3ff3c0ca 428c59fb = 1.2345678901234567 |
| 96 |
fI[1] = #3ff3c0ca 428c59fc = 1.2345678901234569 |
| 97 |
fI[0] == strtod |
| 98 |
|
| 99 |
|
| 100 |
Input: 1.23456789012345678901234567890123456789 |
| 101 |
strtord consumes 40 bytes and returns 17 with f = 1.2345678901234567 = #3ff3c0ca 428c59fb |
| 102 |
g_dfmt(0) gives 18 bytes: "1.2345678901234567" |
| 103 |
|
| 104 |
strtoId returns 17, consuming 40 bytes. |
| 105 |
fI[0] = #3ff3c0ca 428c59fb = 1.2345678901234567 |
| 106 |
fI[1] = #3ff3c0ca 428c59fc = 1.2345678901234569 |
| 107 |
fI[0] == strtod |
| 108 |
|
| 109 |
|
| 110 |
Input: 1.23e306 |
| 111 |
strtord consumes 8 bytes and returns 33 with f = 1.23e+306 = #7f7c0676 cd1c61f5 |
| 112 |
g_dfmt(0) gives 9 bytes: "1.23e+306" |
| 113 |
|
| 114 |
strtoId returns 33, consuming 8 bytes. |
| 115 |
fI[0] = #7f7c0676 cd1c61f4 = 1.2299999999999999e+306 |
| 116 |
fI[1] = #7f7c0676 cd1c61f5 = 1.23e+306 |
| 117 |
fI[1] == strtod |
| 118 |
|
| 119 |
|
| 120 |
Input: 1.23e-306 |
| 121 |
strtord consumes 9 bytes and returns 33 with f = 1.23e-306 = #6ba3b8 5da396e8 |
| 122 |
g_dfmt(0) gives 9 bytes: "1.23e-306" |
| 123 |
|
| 124 |
strtoId returns 33, consuming 9 bytes. |
| 125 |
fI[0] = #6ba3b8 5da396e7 = 1.2299999999999999e-306 |
| 126 |
fI[1] = #6ba3b8 5da396e8 = 1.23e-306 |
| 127 |
fI[1] == strtod |
| 128 |
|
| 129 |
|
| 130 |
Input: 1.23e-320 |
| 131 |
strtord consumes 9 bytes and returns 98 with f = 1.2302234581447039e-320 = #0 9ba |
| 132 |
g_dfmt(0) gives 9 bytes: "1.23e-320" |
| 133 |
|
| 134 |
strtoId returns 98, consuming 9 bytes. |
| 135 |
fI[0] = #0 9b9 = 1.2297293924988626e-320 |
| 136 |
fI[1] = #0 9ba = 1.2302234581447039e-320 |
| 137 |
fI[1] == strtod |
| 138 |
|
| 139 |
|
| 140 |
Input: 1.23e-20 |
| 141 |
strtord consumes 8 bytes and returns 33 with f = 1.2300000000000001e-20 = #3bcd0ae4 cf767531 |
| 142 |
g_dfmt(0) gives 8 bytes: "1.23e-20" |
| 143 |
|
| 144 |
strtoId returns 33, consuming 8 bytes. |
| 145 |
fI[0] = #3bcd0ae4 cf767530 = 1.2299999999999999e-20 |
| 146 |
fI[1] = #3bcd0ae4 cf767531 = 1.2300000000000001e-20 |
| 147 |
fI[1] == strtod |
| 148 |
|
| 149 |
|
| 150 |
Input: 1.23456789e307 |
| 151 |
strtord consumes 14 bytes and returns 33 with f = 1.23456789e+307 = #7fb194b1 4bdaecdc |
| 152 |
g_dfmt(0) gives 15 bytes: "1.23456789e+307" |
| 153 |
|
| 154 |
strtoId returns 33, consuming 14 bytes. |
| 155 |
fI[0] = #7fb194b1 4bdaecdb = 1.2345678899999998e+307 |
| 156 |
fI[1] = #7fb194b1 4bdaecdc = 1.23456789e+307 |
| 157 |
fI[1] == strtod |
| 158 |
|
| 159 |
|
| 160 |
Input: 1.23456589e-307 |
| 161 |
strtord consumes 15 bytes and returns 17 with f = 1.2345658899999999e-307 = #363196 bb9845fa |
| 162 |
g_dfmt(0) gives 15 bytes: "1.23456589e-307" |
| 163 |
|
| 164 |
strtoId returns 17, consuming 15 bytes. |
| 165 |
fI[0] = #363196 bb9845fa = 1.2345658899999999e-307 |
| 166 |
fI[1] = #363196 bb9845fb = 1.2345658900000001e-307 |
| 167 |
fI[0] == strtod |
| 168 |
|
| 169 |
|
| 170 |
Input: 1.234567890123456789 |
| 171 |
strtord consumes 20 bytes and returns 17 with f = 1.2345678901234567 = #3ff3c0ca 428c59fb |
| 172 |
g_dfmt(0) gives 18 bytes: "1.2345678901234567" |
| 173 |
|
| 174 |
strtoId returns 17, consuming 20 bytes. |
| 175 |
fI[0] = #3ff3c0ca 428c59fb = 1.2345678901234567 |
| 176 |
fI[1] = #3ff3c0ca 428c59fc = 1.2345678901234569 |
| 177 |
fI[0] == strtod |
| 178 |
|
| 179 |
|
| 180 |
Input: 1.234567890123456789e301 |
| 181 |
strtord consumes 24 bytes and returns 17 with f = 1.2345678901234568e+301 = #7e726f51 75f56413 |
| 182 |
g_dfmt(0) gives 23 bytes: "1.2345678901234568e+301" |
| 183 |
|
| 184 |
strtoId returns 17, consuming 24 bytes. |
| 185 |
fI[0] = #7e726f51 75f56413 = 1.2345678901234568e+301 |
| 186 |
fI[1] = #7e726f51 75f56414 = 1.234567890123457e+301 |
| 187 |
fI[0] == strtod |
| 188 |
|
| 189 |
|
| 190 |
Input: 1.234567890123456789e-301 |
| 191 |
strtord consumes 25 bytes and returns 17 with f = 1.2345678901234567e-301 = #1752a64 e34ba0d3 |
| 192 |
g_dfmt(0) gives 23 bytes: "1.2345678901234567e-301" |
| 193 |
|
| 194 |
strtoId returns 17, consuming 25 bytes. |
| 195 |
fI[0] = #1752a64 e34ba0d3 = 1.2345678901234567e-301 |
| 196 |
fI[1] = #1752a64 e34ba0d4 = 1.2345678901234569e-301 |
| 197 |
fI[0] == strtod |
| 198 |
|
| 199 |
|
| 200 |
Input: 1.234567890123456789e-321 |
| 201 |
strtord consumes 25 bytes and returns 98 with f = 1.2351641146031164e-321 = #0 fa |
| 202 |
g_dfmt(0) gives 10 bytes: "1.235e-321" |
| 203 |
|
| 204 |
strtoId returns 98, consuming 25 bytes. |
| 205 |
fI[0] = #0 f9 = 1.2302234581447039e-321 |
| 206 |
fI[1] = #0 fa = 1.2351641146031164e-321 |
| 207 |
fI[1] == strtod |
| 208 |
|
| 209 |
|
| 210 |
Input: 1e23 |
| 211 |
strtord consumes 4 bytes and returns 17 with f = 9.9999999999999992e+22 = #44b52d02 c7e14af6 |
| 212 |
g_dfmt(0) gives 5 bytes: "1e+23" |
| 213 |
|
| 214 |
strtoId returns 17, consuming 4 bytes. |
| 215 |
fI[0] = #44b52d02 c7e14af6 = 9.9999999999999992e+22 |
| 216 |
fI[1] = #44b52d02 c7e14af7 = 1.0000000000000001e+23 |
| 217 |
fI[0] == strtod |
| 218 |
|
| 219 |
|
| 220 |
Input: 1e310 |
| 221 |
strtord consumes 5 bytes and returns 163 with f = Infinity = #7ff00000 0 |
| 222 |
g_dfmt(0) gives 8 bytes: "Infinity" |
| 223 |
|
| 224 |
strtoId returns 163, consuming 5 bytes. |
| 225 |
fI[0] = #7fefffff ffffffff = 1.7976931348623157e+308 |
| 226 |
fI[1] = #7ff00000 0 = Infinity |
| 227 |
fI[1] == strtod |
| 228 |
|
| 229 |
g_dfmt_p(...,0): "Infinity" |
| 230 |
g_dfmt_p(...,1): "Infinity" |
| 231 |
g_dfmt_p(...,2): "Infinity" |
| 232 |
g_dfmt_p(...,3): "Infinity" |
| 233 |
g_dfmt_p(...,4): "Infinity" |
| 234 |
g_dfmt_p(...,5): "Infinity" |
| 235 |
|
| 236 |
Input: 9.0259718793241475e-277 |
| 237 |
strtord consumes 23 bytes and returns 33 with f = 9.0259718793241479e-277 = #6a00000 0 |
| 238 |
g_dfmt(0) gives 22 bytes: "9.025971879324148e-277" |
| 239 |
|
| 240 |
strtoId returns 33, consuming 23 bytes. |
| 241 |
fI[0] = #69fffff ffffffff = 9.0259718793241469e-277 |
| 242 |
fI[1] = #6a00000 0 = 9.0259718793241479e-277 |
| 243 |
fI[1] == strtod |
| 244 |
|
| 245 |
|
| 246 |
Input: 9.025971879324147880346310405869e-277 |
| 247 |
strtord consumes 37 bytes and returns 17 with f = 9.0259718793241479e-277 = #6a00000 0 |
| 248 |
g_dfmt(0) gives 22 bytes: "9.025971879324148e-277" |
| 249 |
|
| 250 |
strtoId returns 17, consuming 37 bytes. |
| 251 |
fI[0] = #6a00000 0 = 9.0259718793241479e-277 |
| 252 |
fI[1] = #6a00000 1 = 9.0259718793241499e-277 |
| 253 |
fI[0] == strtod |
| 254 |
|
| 255 |
|
| 256 |
Input: 9.025971879324147880346310405868e-277 |
| 257 |
strtord consumes 37 bytes and returns 33 with f = 9.0259718793241479e-277 = #6a00000 0 |
| 258 |
g_dfmt(0) gives 22 bytes: "9.025971879324148e-277" |
| 259 |
|
| 260 |
strtoId returns 33, consuming 37 bytes. |
| 261 |
fI[0] = #69fffff ffffffff = 9.0259718793241469e-277 |
| 262 |
fI[1] = #6a00000 0 = 9.0259718793241479e-277 |
| 263 |
fI[1] == strtod |
| 264 |
|
| 265 |
|
| 266 |
Input: 2.2250738585072014e-308 |
| 267 |
strtord consumes 23 bytes and returns 17 with f = 2.2250738585072014e-308 = #100000 0 |
| 268 |
g_dfmt(0) gives 23 bytes: "2.2250738585072014e-308" |
| 269 |
|
| 270 |
strtoId returns 17, consuming 23 bytes. |
| 271 |
fI[0] = #100000 0 = 2.2250738585072014e-308 |
| 272 |
fI[1] = #100000 1 = 2.2250738585072019e-308 |
| 273 |
fI[0] == strtod |
| 274 |
|
| 275 |
|
| 276 |
Input: 2.2250738585072013e-308 |
| 277 |
strtord consumes 23 bytes and returns 33 with f = 2.2250738585072014e-308 = #100000 0 |
| 278 |
g_dfmt(0) gives 23 bytes: "2.2250738585072014e-308" |
| 279 |
|
| 280 |
strtoId returns 33, consuming 23 bytes. |
| 281 |
fI[0] = #fffff ffffffff = 2.2250738585072009e-308 |
| 282 |
fI[1] = #100000 0 = 2.2250738585072014e-308 |
| 283 |
fI[1] == strtod |
| 284 |
|
| 285 |
|
| 286 |
Input: 3.2649476e14 |
| 287 |
strtord consumes 12 bytes and returns 1 with f = 326494760000000 = #42f28f1f c30da000 |
| 288 |
g_dfmt(0) gives 13 bytes: "3.2649476e+14" |
| 289 |
|
| 290 |
strtoId returns 1, consuming 12 bytes. |
| 291 |
fI[0] == fI[1] == strtod |
| 292 |
|
| 293 |
Rounding mode for strtor... changed from 1 (nearest) to 0 (toward zero) |
| 294 |
|
| 295 |
Input: 1.1 |
| 296 |
strtord consumes 3 bytes and returns 17 with f = 1.0999999999999999 = #3ff19999 99999999 |
| 297 |
g_dfmt(0) gives 18 bytes: "1.0999999999999999" |
| 298 |
|
| 299 |
strtoId returns 33, consuming 3 bytes. |
| 300 |
fI[0] = #3ff19999 99999999 = 1.0999999999999999 |
| 301 |
fI[1] = #3ff19999 9999999a = 1.1000000000000001 |
| 302 |
fI[0] == strtod |
| 303 |
|
| 304 |
|
| 305 |
Input: -1.1 |
| 306 |
strtord consumes 4 bytes and returns 25 with f = -1.0999999999999999 = #bff19999 99999999 |
| 307 |
g_dfmt(0) gives 19 bytes: "-1.0999999999999999" |
| 308 |
|
| 309 |
strtoId returns 41, consuming 4 bytes. |
| 310 |
fI[0] = #bff19999 9999999a = -1.1000000000000001 |
| 311 |
fI[1] = #bff19999 99999999 = -1.0999999999999999 |
| 312 |
fI[1] == strtod |
| 313 |
|
| 314 |
|
| 315 |
Input: 1.2 |
| 316 |
strtord consumes 3 bytes and returns 17 with f = 1.2 = #3ff33333 33333333 |
| 317 |
g_dfmt(0) gives 3 bytes: "1.2" |
| 318 |
|
| 319 |
strtoId returns 17, consuming 3 bytes. |
| 320 |
fI[0] = #3ff33333 33333333 = 1.2 |
| 321 |
fI[1] = #3ff33333 33333334 = 1.2000000000000002 |
| 322 |
fI[0] == strtod |
| 323 |
|
| 324 |
|
| 325 |
Input: -1.2 |
| 326 |
strtord consumes 4 bytes and returns 25 with f = -1.2 = #bff33333 33333333 |
| 327 |
g_dfmt(0) gives 4 bytes: "-1.2" |
| 328 |
|
| 329 |
strtoId returns 25, consuming 4 bytes. |
| 330 |
fI[0] = #bff33333 33333334 = -1.2000000000000002 |
| 331 |
fI[1] = #bff33333 33333333 = -1.2 |
| 332 |
fI[1] == strtod |
| 333 |
|
| 334 |
|
| 335 |
Input: 1.3 |
| 336 |
strtord consumes 3 bytes and returns 17 with f = 1.2999999999999998 = #3ff4cccc cccccccc |
| 337 |
g_dfmt(0) gives 18 bytes: "1.2999999999999998" |
| 338 |
|
| 339 |
strtoId returns 33, consuming 3 bytes. |
| 340 |
fI[0] = #3ff4cccc cccccccc = 1.2999999999999998 |
| 341 |
fI[1] = #3ff4cccc cccccccd = 1.3 |
| 342 |
fI[0] == strtod |
| 343 |
|
| 344 |
|
| 345 |
Input: -1.3 |
| 346 |
strtord consumes 4 bytes and returns 25 with f = -1.2999999999999998 = #bff4cccc cccccccc |
| 347 |
g_dfmt(0) gives 19 bytes: "-1.2999999999999998" |
| 348 |
|
| 349 |
strtoId returns 41, consuming 4 bytes. |
| 350 |
fI[0] = #bff4cccc cccccccd = -1.3 |
| 351 |
fI[1] = #bff4cccc cccccccc = -1.2999999999999998 |
| 352 |
fI[1] == strtod |
| 353 |
|
| 354 |
|
| 355 |
Input: 1.4 |
| 356 |
strtord consumes 3 bytes and returns 17 with f = 1.3999999999999999 = #3ff66666 66666666 |
| 357 |
g_dfmt(0) gives 3 bytes: "1.4" |
| 358 |
|
| 359 |
strtoId returns 17, consuming 3 bytes. |
| 360 |
fI[0] = #3ff66666 66666666 = 1.3999999999999999 |
| 361 |
fI[1] = #3ff66666 66666667 = 1.4000000000000001 |
| 362 |
fI[0] == strtod |
| 363 |
|
| 364 |
|
| 365 |
Input: -1.4 |
| 366 |
strtord consumes 4 bytes and returns 25 with f = -1.3999999999999999 = #bff66666 66666666 |
| 367 |
g_dfmt(0) gives 4 bytes: "-1.4" |
| 368 |
|
| 369 |
strtoId returns 25, consuming 4 bytes. |
| 370 |
fI[0] = #bff66666 66666667 = -1.4000000000000001 |
| 371 |
fI[1] = #bff66666 66666666 = -1.3999999999999999 |
| 372 |
fI[1] == strtod |
| 373 |
|
| 374 |
|
| 375 |
Input: 1.5 |
| 376 |
strtord consumes 3 bytes and returns 1 with f = 1.5 = #3ff80000 0 |
| 377 |
g_dfmt(0) gives 3 bytes: "1.5" |
| 378 |
|
| 379 |
strtoId returns 1, consuming 3 bytes. |
| 380 |
fI[0] == fI[1] == strtod |
| 381 |
|
| 382 |
|
| 383 |
Input: -1.5 |
| 384 |
strtord consumes 4 bytes and returns 9 with f = -1.5 = #bff80000 0 |
| 385 |
g_dfmt(0) gives 4 bytes: "-1.5" |
| 386 |
|
| 387 |
strtoId returns 9, consuming 4 bytes. |
| 388 |
fI[0] == fI[1] == strtod |
| 389 |
|
| 390 |
|
| 391 |
Input: 1.6 |
| 392 |
strtord consumes 3 bytes and returns 17 with f = 1.5999999999999999 = #3ff99999 99999999 |
| 393 |
g_dfmt(0) gives 18 bytes: "1.5999999999999999" |
| 394 |
|
| 395 |
strtoId returns 33, consuming 3 bytes. |
| 396 |
fI[0] = #3ff99999 99999999 = 1.5999999999999999 |
| 397 |
fI[1] = #3ff99999 9999999a = 1.6000000000000001 |
| 398 |
fI[0] == strtod |
| 399 |
|
| 400 |
|
| 401 |
Input: -1.6 |
| 402 |
strtord consumes 4 bytes and returns 25 with f = -1.5999999999999999 = #bff99999 99999999 |
| 403 |
g_dfmt(0) gives 19 bytes: "-1.5999999999999999" |
| 404 |
|
| 405 |
strtoId returns 41, consuming 4 bytes. |
| 406 |
fI[0] = #bff99999 9999999a = -1.6000000000000001 |
| 407 |
fI[1] = #bff99999 99999999 = -1.5999999999999999 |
| 408 |
fI[1] == strtod |
| 409 |
|
| 410 |
|
| 411 |
Input: 1.7 |
| 412 |
strtord consumes 3 bytes and returns 17 with f = 1.7 = #3ffb3333 33333333 |
| 413 |
g_dfmt(0) gives 3 bytes: "1.7" |
| 414 |
|
| 415 |
strtoId returns 17, consuming 3 bytes. |
| 416 |
fI[0] = #3ffb3333 33333333 = 1.7 |
| 417 |
fI[1] = #3ffb3333 33333334 = 1.7000000000000002 |
| 418 |
fI[0] == strtod |
| 419 |
|
| 420 |
|
| 421 |
Input: -1.7 |
| 422 |
strtord consumes 4 bytes and returns 25 with f = -1.7 = #bffb3333 33333333 |
| 423 |
g_dfmt(0) gives 4 bytes: "-1.7" |
| 424 |
|
| 425 |
strtoId returns 25, consuming 4 bytes. |
| 426 |
fI[0] = #bffb3333 33333334 = -1.7000000000000002 |
| 427 |
fI[1] = #bffb3333 33333333 = -1.7 |
| 428 |
fI[1] == strtod |
| 429 |
|
| 430 |
|
| 431 |
Input: 1.8 |
| 432 |
strtord consumes 3 bytes and returns 17 with f = 1.7999999999999998 = #3ffccccc cccccccc |
| 433 |
g_dfmt(0) gives 18 bytes: "1.7999999999999998" |
| 434 |
|
| 435 |
strtoId returns 33, consuming 3 bytes. |
| 436 |
fI[0] = #3ffccccc cccccccc = 1.7999999999999998 |
| 437 |
fI[1] = #3ffccccc cccccccd = 1.8 |
| 438 |
fI[0] == strtod |
| 439 |
|
| 440 |
|
| 441 |
Input: -1.8 |
| 442 |
strtord consumes 4 bytes and returns 25 with f = -1.7999999999999998 = #bffccccc cccccccc |
| 443 |
g_dfmt(0) gives 19 bytes: "-1.7999999999999998" |
| 444 |
|
| 445 |
strtoId returns 41, consuming 4 bytes. |
| 446 |
fI[0] = #bffccccc cccccccd = -1.8 |
| 447 |
fI[1] = #bffccccc cccccccc = -1.7999999999999998 |
| 448 |
fI[1] == strtod |
| 449 |
|
| 450 |
|
| 451 |
Input: 1.9 |
| 452 |
strtord consumes 3 bytes and returns 17 with f = 1.8999999999999999 = #3ffe6666 66666666 |
| 453 |
g_dfmt(0) gives 3 bytes: "1.9" |
| 454 |
|
| 455 |
strtoId returns 17, consuming 3 bytes. |
| 456 |
fI[0] = #3ffe6666 66666666 = 1.8999999999999999 |
| 457 |
fI[1] = #3ffe6666 66666667 = 1.9000000000000001 |
| 458 |
fI[0] == strtod |
| 459 |
|
| 460 |
|
| 461 |
Input: -1.9 |
| 462 |
strtord consumes 4 bytes and returns 25 with f = -1.8999999999999999 = #bffe6666 66666666 |
| 463 |
g_dfmt(0) gives 4 bytes: "-1.9" |
| 464 |
|
| 465 |
strtoId returns 25, consuming 4 bytes. |
| 466 |
fI[0] = #bffe6666 66666667 = -1.9000000000000001 |
| 467 |
fI[1] = #bffe6666 66666666 = -1.8999999999999999 |
| 468 |
fI[1] == strtod |
| 469 |
|
| 470 |
Rounding mode for strtor... changed from 0 (toward zero) to 1 (nearest) |
| 471 |
|
| 472 |
Input: 1.1 |
| 473 |
strtord consumes 3 bytes and returns 33 with f = 1.1000000000000001 = #3ff19999 9999999a |
| 474 |
g_dfmt(0) gives 3 bytes: "1.1" |
| 475 |
|
| 476 |
strtoId returns 33, consuming 3 bytes. |
| 477 |
fI[0] = #3ff19999 99999999 = 1.0999999999999999 |
| 478 |
fI[1] = #3ff19999 9999999a = 1.1000000000000001 |
| 479 |
fI[1] == strtod |
| 480 |
|
| 481 |
|
| 482 |
Input: -1.1 |
| 483 |
strtord consumes 4 bytes and returns 41 with f = -1.1000000000000001 = #bff19999 9999999a |
| 484 |
g_dfmt(0) gives 4 bytes: "-1.1" |
| 485 |
|
| 486 |
strtoId returns 41, consuming 4 bytes. |
| 487 |
fI[0] = #bff19999 9999999a = -1.1000000000000001 |
| 488 |
fI[1] = #bff19999 99999999 = -1.0999999999999999 |
| 489 |
fI[0] == strtod |
| 490 |
|
| 491 |
|
| 492 |
Input: 1.2 |
| 493 |
strtord consumes 3 bytes and returns 17 with f = 1.2 = #3ff33333 33333333 |
| 494 |
g_dfmt(0) gives 3 bytes: "1.2" |
| 495 |
|
| 496 |
strtoId returns 17, consuming 3 bytes. |
| 497 |
fI[0] = #3ff33333 33333333 = 1.2 |
| 498 |
fI[1] = #3ff33333 33333334 = 1.2000000000000002 |
| 499 |
fI[0] == strtod |
| 500 |
|
| 501 |
|
| 502 |
Input: -1.2 |
| 503 |
strtord consumes 4 bytes and returns 25 with f = -1.2 = #bff33333 33333333 |
| 504 |
g_dfmt(0) gives 4 bytes: "-1.2" |
| 505 |
|
| 506 |
strtoId returns 25, consuming 4 bytes. |
| 507 |
fI[0] = #bff33333 33333334 = -1.2000000000000002 |
| 508 |
fI[1] = #bff33333 33333333 = -1.2 |
| 509 |
fI[1] == strtod |
| 510 |
|
| 511 |
|
| 512 |
Input: 1.3 |
| 513 |
strtord consumes 3 bytes and returns 33 with f = 1.3 = #3ff4cccc cccccccd |
| 514 |
g_dfmt(0) gives 3 bytes: "1.3" |
| 515 |
|
| 516 |
strtoId returns 33, consuming 3 bytes. |
| 517 |
fI[0] = #3ff4cccc cccccccc = 1.2999999999999998 |
| 518 |
fI[1] = #3ff4cccc cccccccd = 1.3 |
| 519 |
fI[1] == strtod |
| 520 |
|
| 521 |
|
| 522 |
Input: -1.3 |
| 523 |
strtord consumes 4 bytes and returns 41 with f = -1.3 = #bff4cccc cccccccd |
| 524 |
g_dfmt(0) gives 4 bytes: "-1.3" |
| 525 |
|
| 526 |
strtoId returns 41, consuming 4 bytes. |
| 527 |
fI[0] = #bff4cccc cccccccd = -1.3 |
| 528 |
fI[1] = #bff4cccc cccccccc = -1.2999999999999998 |
| 529 |
fI[0] == strtod |
| 530 |
|
| 531 |
|
| 532 |
Input: 1.4 |
| 533 |
strtord consumes 3 bytes and returns 17 with f = 1.3999999999999999 = #3ff66666 66666666 |
| 534 |
g_dfmt(0) gives 3 bytes: "1.4" |
| 535 |
|
| 536 |
strtoId returns 17, consuming 3 bytes. |
| 537 |
fI[0] = #3ff66666 66666666 = 1.3999999999999999 |
| 538 |
fI[1] = #3ff66666 66666667 = 1.4000000000000001 |
| 539 |
fI[0] == strtod |
| 540 |
|
| 541 |
|
| 542 |
Input: -1.4 |
| 543 |
strtord consumes 4 bytes and returns 25 with f = -1.3999999999999999 = #bff66666 66666666 |
| 544 |
g_dfmt(0) gives 4 bytes: "-1.4" |
| 545 |
|
| 546 |
strtoId returns 25, consuming 4 bytes. |
| 547 |
fI[0] = #bff66666 66666667 = -1.4000000000000001 |
| 548 |
fI[1] = #bff66666 66666666 = -1.3999999999999999 |
| 549 |
fI[1] == strtod |
| 550 |
|
| 551 |
|
| 552 |
Input: 1.5 |
| 553 |
strtord consumes 3 bytes and returns 1 with f = 1.5 = #3ff80000 0 |
| 554 |
g_dfmt(0) gives 3 bytes: "1.5" |
| 555 |
|
| 556 |
strtoId returns 1, consuming 3 bytes. |
| 557 |
fI[0] == fI[1] == strtod |
| 558 |
|
| 559 |
|
| 560 |
Input: -1.5 |
| 561 |
strtord consumes 4 bytes and returns 9 with f = -1.5 = #bff80000 0 |
| 562 |
g_dfmt(0) gives 4 bytes: "-1.5" |
| 563 |
|
| 564 |
strtoId returns 9, consuming 4 bytes. |
| 565 |
fI[0] == fI[1] == strtod |
| 566 |
|
| 567 |
|
| 568 |
Input: 1.6 |
| 569 |
strtord consumes 3 bytes and returns 33 with f = 1.6000000000000001 = #3ff99999 9999999a |
| 570 |
g_dfmt(0) gives 3 bytes: "1.6" |
| 571 |
|
| 572 |
strtoId returns 33, consuming 3 bytes. |
| 573 |
fI[0] = #3ff99999 99999999 = 1.5999999999999999 |
| 574 |
fI[1] = #3ff99999 9999999a = 1.6000000000000001 |
| 575 |
fI[1] == strtod |
| 576 |
|
| 577 |
|
| 578 |
Input: -1.6 |
| 579 |
strtord consumes 4 bytes and returns 41 with f = -1.6000000000000001 = #bff99999 9999999a |
| 580 |
g_dfmt(0) gives 4 bytes: "-1.6" |
| 581 |
|
| 582 |
strtoId returns 41, consuming 4 bytes. |
| 583 |
fI[0] = #bff99999 9999999a = -1.6000000000000001 |
| 584 |
fI[1] = #bff99999 99999999 = -1.5999999999999999 |
| 585 |
fI[0] == strtod |
| 586 |
|
| 587 |
|
| 588 |
Input: 1.7 |
| 589 |
strtord consumes 3 bytes and returns 17 with f = 1.7 = #3ffb3333 33333333 |
| 590 |
g_dfmt(0) gives 3 bytes: "1.7" |
| 591 |
|
| 592 |
strtoId returns 17, consuming 3 bytes. |
| 593 |
fI[0] = #3ffb3333 33333333 = 1.7 |
| 594 |
fI[1] = #3ffb3333 33333334 = 1.7000000000000002 |
| 595 |
fI[0] == strtod |
| 596 |
|
| 597 |
|
| 598 |
Input: -1.7 |
| 599 |
strtord consumes 4 bytes and returns 25 with f = -1.7 = #bffb3333 33333333 |
| 600 |
g_dfmt(0) gives 4 bytes: "-1.7" |
| 601 |
|
| 602 |
strtoId returns 25, consuming 4 bytes. |
| 603 |
fI[0] = #bffb3333 33333334 = -1.7000000000000002 |
| 604 |
fI[1] = #bffb3333 33333333 = -1.7 |
| 605 |
fI[1] == strtod |
| 606 |
|
| 607 |
|
| 608 |
Input: 1.8 |
| 609 |
strtord consumes 3 bytes and returns 33 with f = 1.8 = #3ffccccc cccccccd |
| 610 |
g_dfmt(0) gives 3 bytes: "1.8" |
| 611 |
|
| 612 |
strtoId returns 33, consuming 3 bytes. |
| 613 |
fI[0] = #3ffccccc cccccccc = 1.7999999999999998 |
| 614 |
fI[1] = #3ffccccc cccccccd = 1.8 |
| 615 |
fI[1] == strtod |
| 616 |
|
| 617 |
|
| 618 |
Input: -1.8 |
| 619 |
strtord consumes 4 bytes and returns 41 with f = -1.8 = #bffccccc cccccccd |
| 620 |
g_dfmt(0) gives 4 bytes: "-1.8" |
| 621 |
|
| 622 |
strtoId returns 41, consuming 4 bytes. |
| 623 |
fI[0] = #bffccccc cccccccd = -1.8 |
| 624 |
fI[1] = #bffccccc cccccccc = -1.7999999999999998 |
| 625 |
fI[0] == strtod |
| 626 |
|
| 627 |
|
| 628 |
Input: 1.9 |
| 629 |
strtord consumes 3 bytes and returns 17 with f = 1.8999999999999999 = #3ffe6666 66666666 |
| 630 |
g_dfmt(0) gives 3 bytes: "1.9" |
| 631 |
|
| 632 |
strtoId returns 17, consuming 3 bytes. |
| 633 |
fI[0] = #3ffe6666 66666666 = 1.8999999999999999 |
| 634 |
fI[1] = #3ffe6666 66666667 = 1.9000000000000001 |
| 635 |
fI[0] == strtod |
| 636 |
|
| 637 |
|
| 638 |
Input: -1.9 |
| 639 |
strtord consumes 4 bytes and returns 25 with f = -1.8999999999999999 = #bffe6666 66666666 |
| 640 |
g_dfmt(0) gives 4 bytes: "-1.9" |
| 641 |
|
| 642 |
strtoId returns 25, consuming 4 bytes. |
| 643 |
fI[0] = #bffe6666 66666667 = -1.9000000000000001 |
| 644 |
fI[1] = #bffe6666 66666666 = -1.8999999999999999 |
| 645 |
fI[1] == strtod |
| 646 |
|
| 647 |
Rounding mode for strtor... changed from 1 (nearest) to 2 (toward +Infinity) |
| 648 |
|
| 649 |
Input: 1.1 |
| 650 |
strtord consumes 3 bytes and returns 33 with f = 1.1000000000000001 = #3ff19999 9999999a |
| 651 |
g_dfmt(0) gives 3 bytes: "1.1" |
| 652 |
|
| 653 |
strtoId returns 33, consuming 3 bytes. |
| 654 |
fI[0] = #3ff19999 99999999 = 1.0999999999999999 |
| 655 |
fI[1] = #3ff19999 9999999a = 1.1000000000000001 |
| 656 |
fI[1] == strtod |
| 657 |
|
| 658 |
|
| 659 |
Input: -1.1 |
| 660 |
strtord consumes 4 bytes and returns 25 with f = -1.0999999999999999 = #bff19999 99999999 |
| 661 |
g_dfmt(0) gives 19 bytes: "-1.0999999999999999" |
| 662 |
|
| 663 |
strtoId returns 41, consuming 4 bytes. |
| 664 |
fI[0] = #bff19999 9999999a = -1.1000000000000001 |
| 665 |
fI[1] = #bff19999 99999999 = -1.0999999999999999 |
| 666 |
fI[1] == strtod |
| 667 |
|
| 668 |
|
| 669 |
Input: 1.2 |
| 670 |
strtord consumes 3 bytes and returns 33 with f = 1.2000000000000002 = #3ff33333 33333334 |
| 671 |
g_dfmt(0) gives 18 bytes: "1.2000000000000002" |
| 672 |
|
| 673 |
strtoId returns 17, consuming 3 bytes. |
| 674 |
fI[0] = #3ff33333 33333333 = 1.2 |
| 675 |
fI[1] = #3ff33333 33333334 = 1.2000000000000002 |
| 676 |
fI[1] == strtod |
| 677 |
|
| 678 |
|
| 679 |
Input: -1.2 |
| 680 |
strtord consumes 4 bytes and returns 25 with f = -1.2 = #bff33333 33333333 |
| 681 |
g_dfmt(0) gives 4 bytes: "-1.2" |
| 682 |
|
| 683 |
strtoId returns 25, consuming 4 bytes. |
| 684 |
fI[0] = #bff33333 33333334 = -1.2000000000000002 |
| 685 |
fI[1] = #bff33333 33333333 = -1.2 |
| 686 |
fI[1] == strtod |
| 687 |
|
| 688 |
|
| 689 |
Input: 1.3 |
| 690 |
strtord consumes 3 bytes and returns 33 with f = 1.3 = #3ff4cccc cccccccd |
| 691 |
g_dfmt(0) gives 3 bytes: "1.3" |
| 692 |
|
| 693 |
strtoId returns 33, consuming 3 bytes. |
| 694 |
fI[0] = #3ff4cccc cccccccc = 1.2999999999999998 |
| 695 |
fI[1] = #3ff4cccc cccccccd = 1.3 |
| 696 |
fI[1] == strtod |
| 697 |
|
| 698 |
|
| 699 |
Input: -1.3 |
| 700 |
strtord consumes 4 bytes and returns 25 with f = -1.2999999999999998 = #bff4cccc cccccccc |
| 701 |
g_dfmt(0) gives 19 bytes: "-1.2999999999999998" |
| 702 |
|
| 703 |
strtoId returns 41, consuming 4 bytes. |
| 704 |
fI[0] = #bff4cccc cccccccd = -1.3 |
| 705 |
fI[1] = #bff4cccc cccccccc = -1.2999999999999998 |
| 706 |
fI[1] == strtod |
| 707 |
|
| 708 |
|
| 709 |
Input: 1.4 |
| 710 |
strtord consumes 3 bytes and returns 33 with f = 1.4000000000000001 = #3ff66666 66666667 |
| 711 |
g_dfmt(0) gives 18 bytes: "1.4000000000000001" |
| 712 |
|
| 713 |
strtoId returns 17, consuming 3 bytes. |
| 714 |
fI[0] = #3ff66666 66666666 = 1.3999999999999999 |
| 715 |
fI[1] = #3ff66666 66666667 = 1.4000000000000001 |
| 716 |
fI[1] == strtod |
| 717 |
|
| 718 |
|
| 719 |
Input: -1.4 |
| 720 |
strtord consumes 4 bytes and returns 25 with f = -1.3999999999999999 = #bff66666 66666666 |
| 721 |
g_dfmt(0) gives 4 bytes: "-1.4" |
| 722 |
|
| 723 |
strtoId returns 25, consuming 4 bytes. |
| 724 |
fI[0] = #bff66666 66666667 = -1.4000000000000001 |
| 725 |
fI[1] = #bff66666 66666666 = -1.3999999999999999 |
| 726 |
fI[1] == strtod |
| 727 |
|
| 728 |
|
| 729 |
Input: 1.5 |
| 730 |
strtord consumes 3 bytes and returns 1 with f = 1.5 = #3ff80000 0 |
| 731 |
g_dfmt(0) gives 3 bytes: "1.5" |
| 732 |
|
| 733 |
strtoId returns 1, consuming 3 bytes. |
| 734 |
fI[0] == fI[1] == strtod |
| 735 |
|
| 736 |
|
| 737 |
Input: -1.5 |
| 738 |
strtord consumes 4 bytes and returns 9 with f = -1.5 = #bff80000 0 |
| 739 |
g_dfmt(0) gives 4 bytes: "-1.5" |
| 740 |
|
| 741 |
strtoId returns 9, consuming 4 bytes. |
| 742 |
fI[0] == fI[1] == strtod |
| 743 |
|
| 744 |
|
| 745 |
Input: 1.6 |
| 746 |
strtord consumes 3 bytes and returns 33 with f = 1.6000000000000001 = #3ff99999 9999999a |
| 747 |
g_dfmt(0) gives 3 bytes: "1.6" |
| 748 |
|
| 749 |
strtoId returns 33, consuming 3 bytes. |
| 750 |
fI[0] = #3ff99999 99999999 = 1.5999999999999999 |
| 751 |
fI[1] = #3ff99999 9999999a = 1.6000000000000001 |
| 752 |
fI[1] == strtod |
| 753 |
|
| 754 |
|
| 755 |
Input: -1.6 |
| 756 |
strtord consumes 4 bytes and returns 25 with f = -1.5999999999999999 = #bff99999 99999999 |
| 757 |
g_dfmt(0) gives 19 bytes: "-1.5999999999999999" |
| 758 |
|
| 759 |
strtoId returns 41, consuming 4 bytes. |
| 760 |
fI[0] = #bff99999 9999999a = -1.6000000000000001 |
| 761 |
fI[1] = #bff99999 99999999 = -1.5999999999999999 |
| 762 |
fI[1] == strtod |
| 763 |
|
| 764 |
|
| 765 |
Input: 1.7 |
| 766 |
strtord consumes 3 bytes and returns 33 with f = 1.7000000000000002 = #3ffb3333 33333334 |
| 767 |
g_dfmt(0) gives 18 bytes: "1.7000000000000002" |
| 768 |
|
| 769 |
strtoId returns 17, consuming 3 bytes. |
| 770 |
fI[0] = #3ffb3333 33333333 = 1.7 |
| 771 |
fI[1] = #3ffb3333 33333334 = 1.7000000000000002 |
| 772 |
fI[1] == strtod |
| 773 |
|
| 774 |
|
| 775 |
Input: -1.7 |
| 776 |
strtord consumes 4 bytes and returns 25 with f = -1.7 = #bffb3333 33333333 |
| 777 |
g_dfmt(0) gives 4 bytes: "-1.7" |
| 778 |
|
| 779 |
strtoId returns 25, consuming 4 bytes. |
| 780 |
fI[0] = #bffb3333 33333334 = -1.7000000000000002 |
| 781 |
fI[1] = #bffb3333 33333333 = -1.7 |
| 782 |
fI[1] == strtod |
| 783 |
|
| 784 |
|
| 785 |
Input: 1.8 |
| 786 |
strtord consumes 3 bytes and returns 33 with f = 1.8 = #3ffccccc cccccccd |
| 787 |
g_dfmt(0) gives 3 bytes: "1.8" |
| 788 |
|
| 789 |
strtoId returns 33, consuming 3 bytes. |
| 790 |
fI[0] = #3ffccccc cccccccc = 1.7999999999999998 |
| 791 |
fI[1] = #3ffccccc cccccccd = 1.8 |
| 792 |
fI[1] == strtod |
| 793 |
|
| 794 |
|
| 795 |
Input: -1.8 |
| 796 |
strtord consumes 4 bytes and returns 25 with f = -1.7999999999999998 = #bffccccc cccccccc |
| 797 |
g_dfmt(0) gives 19 bytes: "-1.7999999999999998" |
| 798 |
|
| 799 |
strtoId returns 41, consuming 4 bytes. |
| 800 |
fI[0] = #bffccccc cccccccd = -1.8 |
| 801 |
fI[1] = #bffccccc cccccccc = -1.7999999999999998 |
| 802 |
fI[1] == strtod |
| 803 |
|
| 804 |
|
| 805 |
Input: 1.9 |
| 806 |
strtord consumes 3 bytes and returns 33 with f = 1.9000000000000001 = #3ffe6666 66666667 |
| 807 |
g_dfmt(0) gives 18 bytes: "1.9000000000000001" |
| 808 |
|
| 809 |
strtoId returns 17, consuming 3 bytes. |
| 810 |
fI[0] = #3ffe6666 66666666 = 1.8999999999999999 |
| 811 |
fI[1] = #3ffe6666 66666667 = 1.9000000000000001 |
| 812 |
fI[1] == strtod |
| 813 |
|
| 814 |
|
| 815 |
Input: -1.9 |
| 816 |
strtord consumes 4 bytes and returns 25 with f = -1.8999999999999999 = #bffe6666 66666666 |
| 817 |
g_dfmt(0) gives 4 bytes: "-1.9" |
| 818 |
|
| 819 |
strtoId returns 25, consuming 4 bytes. |
| 820 |
fI[0] = #bffe6666 66666667 = -1.9000000000000001 |
| 821 |
fI[1] = #bffe6666 66666666 = -1.8999999999999999 |
| 822 |
fI[1] == strtod |
| 823 |
|
| 824 |
Rounding mode for strtor... changed from 2 (toward +Infinity) to 3 (toward -Infinity) |
| 825 |
|
| 826 |
Input: 1.1 |
| 827 |
strtord consumes 3 bytes and returns 17 with f = 1.0999999999999999 = #3ff19999 99999999 |
| 828 |
g_dfmt(0) gives 18 bytes: "1.0999999999999999" |
| 829 |
|
| 830 |
strtoId returns 33, consuming 3 bytes. |
| 831 |
fI[0] = #3ff19999 99999999 = 1.0999999999999999 |
| 832 |
fI[1] = #3ff19999 9999999a = 1.1000000000000001 |
| 833 |
fI[0] == strtod |
| 834 |
|
| 835 |
|
| 836 |
Input: -1.1 |
| 837 |
strtord consumes 4 bytes and returns 41 with f = -1.1000000000000001 = #bff19999 9999999a |
| 838 |
g_dfmt(0) gives 4 bytes: "-1.1" |
| 839 |
|
| 840 |
strtoId returns 41, consuming 4 bytes. |
| 841 |
fI[0] = #bff19999 9999999a = -1.1000000000000001 |
| 842 |
fI[1] = #bff19999 99999999 = -1.0999999999999999 |
| 843 |
fI[0] == strtod |
| 844 |
|
| 845 |
|
| 846 |
Input: 1.2 |
| 847 |
strtord consumes 3 bytes and returns 17 with f = 1.2 = #3ff33333 33333333 |
| 848 |
g_dfmt(0) gives 3 bytes: "1.2" |
| 849 |
|
| 850 |
strtoId returns 17, consuming 3 bytes. |
| 851 |
fI[0] = #3ff33333 33333333 = 1.2 |
| 852 |
fI[1] = #3ff33333 33333334 = 1.2000000000000002 |
| 853 |
fI[0] == strtod |
| 854 |
|
| 855 |
|
| 856 |
Input: -1.2 |
| 857 |
strtord consumes 4 bytes and returns 41 with f = -1.2000000000000002 = #bff33333 33333334 |
| 858 |
g_dfmt(0) gives 19 bytes: "-1.2000000000000002" |
| 859 |
|
| 860 |
strtoId returns 25, consuming 4 bytes. |
| 861 |
fI[0] = #bff33333 33333334 = -1.2000000000000002 |
| 862 |
fI[1] = #bff33333 33333333 = -1.2 |
| 863 |
fI[0] == strtod |
| 864 |
|
| 865 |
|
| 866 |
Input: 1.3 |
| 867 |
strtord consumes 3 bytes and returns 17 with f = 1.2999999999999998 = #3ff4cccc cccccccc |
| 868 |
g_dfmt(0) gives 18 bytes: "1.2999999999999998" |
| 869 |
|
| 870 |
strtoId returns 33, consuming 3 bytes. |
| 871 |
fI[0] = #3ff4cccc cccccccc = 1.2999999999999998 |
| 872 |
fI[1] = #3ff4cccc cccccccd = 1.3 |
| 873 |
fI[0] == strtod |
| 874 |
|
| 875 |
|
| 876 |
Input: -1.3 |
| 877 |
strtord consumes 4 bytes and returns 41 with f = -1.3 = #bff4cccc cccccccd |
| 878 |
g_dfmt(0) gives 4 bytes: "-1.3" |
| 879 |
|
| 880 |
strtoId returns 41, consuming 4 bytes. |
| 881 |
fI[0] = #bff4cccc cccccccd = -1.3 |
| 882 |
fI[1] = #bff4cccc cccccccc = -1.2999999999999998 |
| 883 |
fI[0] == strtod |
| 884 |
|
| 885 |
|
| 886 |
Input: 1.4 |
| 887 |
strtord consumes 3 bytes and returns 17 with f = 1.3999999999999999 = #3ff66666 66666666 |
| 888 |
g_dfmt(0) gives 3 bytes: "1.4" |
| 889 |
|
| 890 |
strtoId returns 17, consuming 3 bytes. |
| 891 |
fI[0] = #3ff66666 66666666 = 1.3999999999999999 |
| 892 |
fI[1] = #3ff66666 66666667 = 1.4000000000000001 |
| 893 |
fI[0] == strtod |
| 894 |
|
| 895 |
|
| 896 |
Input: -1.4 |
| 897 |
strtord consumes 4 bytes and returns 41 with f = -1.4000000000000001 = #bff66666 66666667 |
| 898 |
g_dfmt(0) gives 19 bytes: "-1.4000000000000001" |
| 899 |
|
| 900 |
strtoId returns 25, consuming 4 bytes. |
| 901 |
fI[0] = #bff66666 66666667 = -1.4000000000000001 |
| 902 |
fI[1] = #bff66666 66666666 = -1.3999999999999999 |
| 903 |
fI[0] == strtod |
| 904 |
|
| 905 |
|
| 906 |
Input: 1.5 |
| 907 |
strtord consumes 3 bytes and returns 1 with f = 1.5 = #3ff80000 0 |
| 908 |
g_dfmt(0) gives 3 bytes: "1.5" |
| 909 |
|
| 910 |
strtoId returns 1, consuming 3 bytes. |
| 911 |
fI[0] == fI[1] == strtod |
| 912 |
|
| 913 |
|
| 914 |
Input: -1.5 |
| 915 |
strtord consumes 4 bytes and returns 9 with f = -1.5 = #bff80000 0 |
| 916 |
g_dfmt(0) gives 4 bytes: "-1.5" |
| 917 |
|
| 918 |
strtoId returns 9, consuming 4 bytes. |
| 919 |
fI[0] == fI[1] == strtod |
| 920 |
|
| 921 |
|
| 922 |
Input: 1.6 |
| 923 |
strtord consumes 3 bytes and returns 17 with f = 1.5999999999999999 = #3ff99999 99999999 |
| 924 |
g_dfmt(0) gives 18 bytes: "1.5999999999999999" |
| 925 |
|
| 926 |
strtoId returns 33, consuming 3 bytes. |
| 927 |
fI[0] = #3ff99999 99999999 = 1.5999999999999999 |
| 928 |
fI[1] = #3ff99999 9999999a = 1.6000000000000001 |
| 929 |
fI[0] == strtod |
| 930 |
|
| 931 |
|
| 932 |
Input: -1.6 |
| 933 |
strtord consumes 4 bytes and returns 41 with f = -1.6000000000000001 = #bff99999 9999999a |
| 934 |
g_dfmt(0) gives 4 bytes: "-1.6" |
| 935 |
|
| 936 |
strtoId returns 41, consuming 4 bytes. |
| 937 |
fI[0] = #bff99999 9999999a = -1.6000000000000001 |
| 938 |
fI[1] = #bff99999 99999999 = -1.5999999999999999 |
| 939 |
fI[0] == strtod |
| 940 |
|
| 941 |
|
| 942 |
Input: 1.7 |
| 943 |
strtord consumes 3 bytes and returns 17 with f = 1.7 = #3ffb3333 33333333 |
| 944 |
g_dfmt(0) gives 3 bytes: "1.7" |
| 945 |
|
| 946 |
strtoId returns 17, consuming 3 bytes. |
| 947 |
fI[0] = #3ffb3333 33333333 = 1.7 |
| 948 |
fI[1] = #3ffb3333 33333334 = 1.7000000000000002 |
| 949 |
fI[0] == strtod |
| 950 |
|
| 951 |
|
| 952 |
Input: -1.7 |
| 953 |
strtord consumes 4 bytes and returns 41 with f = -1.7000000000000002 = #bffb3333 33333334 |
| 954 |
g_dfmt(0) gives 19 bytes: "-1.7000000000000002" |
| 955 |
|
| 956 |
strtoId returns 25, consuming 4 bytes. |
| 957 |
fI[0] = #bffb3333 33333334 = -1.7000000000000002 |
| 958 |
fI[1] = #bffb3333 33333333 = -1.7 |
| 959 |
fI[0] == strtod |
| 960 |
|
| 961 |
|
| 962 |
Input: 1.8 |
| 963 |
strtord consumes 3 bytes and returns 17 with f = 1.7999999999999998 = #3ffccccc cccccccc |
| 964 |
g_dfmt(0) gives 18 bytes: "1.7999999999999998" |
| 965 |
|
| 966 |
strtoId returns 33, consuming 3 bytes. |
| 967 |
fI[0] = #3ffccccc cccccccc = 1.7999999999999998 |
| 968 |
fI[1] = #3ffccccc cccccccd = 1.8 |
| 969 |
fI[0] == strtod |
| 970 |
|
| 971 |
|
| 972 |
Input: -1.8 |
| 973 |
strtord consumes 4 bytes and returns 41 with f = -1.8 = #bffccccc cccccccd |
| 974 |
g_dfmt(0) gives 4 bytes: "-1.8" |
| 975 |
|
| 976 |
strtoId returns 41, consuming 4 bytes. |
| 977 |
fI[0] = #bffccccc cccccccd = -1.8 |
| 978 |
fI[1] = #bffccccc cccccccc = -1.7999999999999998 |
| 979 |
fI[0] == strtod |
| 980 |
|
| 981 |
|
| 982 |
Input: 1.9 |
| 983 |
strtord consumes 3 bytes and returns 17 with f = 1.8999999999999999 = #3ffe6666 66666666 |
| 984 |
g_dfmt(0) gives 3 bytes: "1.9" |
| 985 |
|
| 986 |
strtoId returns 17, consuming 3 bytes. |
| 987 |
fI[0] = #3ffe6666 66666666 = 1.8999999999999999 |
| 988 |
fI[1] = #3ffe6666 66666667 = 1.9000000000000001 |
| 989 |
fI[0] == strtod |
| 990 |
|
| 991 |
|
| 992 |
Input: -1.9 |
| 993 |
strtord consumes 4 bytes and returns 41 with f = -1.9000000000000001 = #bffe6666 66666667 |
| 994 |
g_dfmt(0) gives 19 bytes: "-1.9000000000000001" |
| 995 |
|
| 996 |
strtoId returns 25, consuming 4 bytes. |
| 997 |
fI[0] = #bffe6666 66666667 = -1.9000000000000001 |
| 998 |
fI[1] = #bffe6666 66666666 = -1.8999999999999999 |
| 999 |
fI[0] == strtod |
| 1000 |
|