1 2 Input: 1.23 3 4 strtox consumes 4 bytes and returns 33 5 with bits = #3fff 9d70 a3d7 a3d 70a4 6 g_xfmt(0) gives 4 bytes: "1.23" 7 8 strtoIx returns 33, consuming 4 bytes. 9 fI[0] = #3fff 9d70 a3d7 a3d 70a3 10 fI[1] = #3fff 9d70 a3d7 a3d 70a4 11 fI[1] == strtox 12 13 14 Input: 1.23e+20 15 16 strtox consumes 8 bytes and returns 1 17 with bits = #4041 d55e f90a 2da1 8000 18 g_xfmt(0) gives 8 bytes: "1.23e+20" 19 20 strtoIx returns 1, consuming 8 bytes. 21 fI[0] == fI[1] == strtox 22 23 24 Input: 1.23e-20 25 26 strtox consumes 8 bytes and returns 17 27 with bits = #3fbc e857 267b b3a9 84f2 28 g_xfmt(0) gives 8 bytes: "1.23e-20" 29 30 strtoIx returns 17, consuming 8 bytes. 31 fI[0] = #3fbc e857 267b b3a9 84f2 32 fI[1] = #3fbc e857 267b b3a9 84f3 33 fI[0] == strtox 34 35 36 Input: 1.23456789 37 38 strtox consumes 10 bytes and returns 33 39 with bits = #3fff 9e06 5214 1ef0 dbf6 40 g_xfmt(0) gives 10 bytes: "1.23456789" 41 42 strtoIx returns 33, consuming 10 bytes. 43 fI[0] = #3fff 9e06 5214 1ef0 dbf5 44 fI[1] = #3fff 9e06 5214 1ef0 dbf6 45 fI[1] == strtox 46 47 48 Input: 1.23456589e+20 49 50 strtox consumes 14 bytes and returns 1 51 with bits = #4041 d629 bd33 5cc ba00 52 g_xfmt(0) gives 14 bytes: "1.23456589e+20" 53 54 strtoIx returns 1, consuming 14 bytes. 55 fI[0] == fI[1] == strtox 56 57 58 Input: 1.23e+30 59 60 strtox consumes 8 bytes and returns 17 61 with bits = #4062 f865 8274 7dbc 824a 62 g_xfmt(0) gives 8 bytes: "1.23e+30" 63 64 strtoIx returns 17, consuming 8 bytes. 65 fI[0] = #4062 f865 8274 7dbc 824a 66 fI[1] = #4062 f865 8274 7dbc 824b 67 fI[0] == strtox 68 69 70 Input: 1.23e-30 71 72 strtox consumes 8 bytes and returns 17 73 with bits = #3f9b c794 337a 8085 54eb 74 g_xfmt(0) gives 8 bytes: "1.23e-30" 75 76 strtoIx returns 17, consuming 8 bytes. 77 fI[0] = #3f9b c794 337a 8085 54eb 78 fI[1] = #3f9b c794 337a 8085 54ec 79 fI[0] == strtox 80 81 82 Input: 1.23456789e-20 83 84 strtox consumes 14 bytes and returns 17 85 with bits = #3fbc e934 a38 f3d6 d352 86 g_xfmt(0) gives 14 bytes: "1.23456789e-20" 87 88 strtoIx returns 17, consuming 14 bytes. 89 fI[0] = #3fbc e934 a38 f3d6 d352 90 fI[1] = #3fbc e934 a38 f3d6 d353 91 fI[0] == strtox 92 93 94 Input: 1.23456789e-30 95 96 strtox consumes 14 bytes and returns 17 97 with bits = #3f9b c851 f19d decc a8fc 98 g_xfmt(0) gives 14 bytes: "1.23456789e-30" 99 100 strtoIx returns 17, consuming 14 bytes. 101 fI[0] = #3f9b c851 f19d decc a8fc 102 fI[1] = #3f9b c851 f19d decc a8fd 103 fI[0] == strtox 104 105 106 Input: 1.234567890123456789 107 108 strtox consumes 20 bytes and returns 17 109 with bits = #3fff 9e06 5214 62cf db8d 110 g_xfmt(0) gives 20 bytes: "1.234567890123456789" 111 112 strtoIx returns 17, consuming 20 bytes. 113 fI[0] = #3fff 9e06 5214 62cf db8d 114 fI[1] = #3fff 9e06 5214 62cf db8e 115 fI[0] == strtox 116 117 118 Input: 1.23456789012345678901234567890123456789 119 120 strtox consumes 40 bytes and returns 17 121 with bits = #3fff 9e06 5214 62cf db8d 122 g_xfmt(0) gives 20 bytes: "1.234567890123456789" 123 124 strtoIx returns 17, consuming 40 bytes. 125 fI[0] = #3fff 9e06 5214 62cf db8d 126 fI[1] = #3fff 9e06 5214 62cf db8e 127 fI[0] == strtox 128 129 130 Input: 1.23e306 131 132 strtox consumes 8 bytes and returns 17 133 with bits = #43f7 e033 b668 e30f a6d5 134 g_xfmt(0) gives 9 bytes: "1.23e+306" 135 136 strtoIx returns 17, consuming 8 bytes. 137 fI[0] = #43f7 e033 b668 e30f a6d5 138 fI[1] = #43f7 e033 b668 e30f a6d6 139 fI[0] == strtox 140 141 142 Input: 1.23e-306 143 144 strtox consumes 9 bytes and returns 33 145 with bits = #3c06 dd1d c2ed 1cb7 3f25 146 g_xfmt(0) gives 9 bytes: "1.23e-306" 147 148 strtoIx returns 33, consuming 9 bytes. 149 fI[0] = #3c06 dd1d c2ed 1cb7 3f24 150 fI[1] = #3c06 dd1d c2ed 1cb7 3f25 151 fI[1] == strtox 152 153 154 Input: 1.23e-320 155 156 strtox consumes 9 bytes and returns 33 157 with bits = #3bd8 9b98 c371 844c 3f1a 158 g_xfmt(0) gives 9 bytes: "1.23e-320" 159 160 strtoIx returns 33, consuming 9 bytes. 161 fI[0] = #3bd8 9b98 c371 844c 3f19 162 fI[1] = #3bd8 9b98 c371 844c 3f1a 163 fI[1] == strtox 164 165 166 Input: 1.23e-20 167 168 strtox consumes 8 bytes and returns 17 169 with bits = #3fbc e857 267b b3a9 84f2 170 g_xfmt(0) gives 8 bytes: "1.23e-20" 171 172 strtoIx returns 17, consuming 8 bytes. 173 fI[0] = #3fbc e857 267b b3a9 84f2 174 fI[1] = #3fbc e857 267b b3a9 84f3 175 fI[0] == strtox 176 177 178 Input: 1.23456789e307 179 180 strtox consumes 14 bytes and returns 17 181 with bits = #43fb 8ca5 8a5e d766 de75 182 g_xfmt(0) gives 15 bytes: "1.23456789e+307" 183 184 strtoIx returns 17, consuming 14 bytes. 185 fI[0] = #43fb 8ca5 8a5e d766 de75 186 fI[1] = #43fb 8ca5 8a5e d766 de76 187 fI[0] == strtox 188 189 190 Input: 1.23456589e-307 191 192 strtox consumes 15 bytes and returns 17 193 with bits = #3c03 b18c b5dc c22f d369 194 g_xfmt(0) gives 15 bytes: "1.23456589e-307" 195 196 strtoIx returns 17, consuming 15 bytes. 197 fI[0] = #3c03 b18c b5dc c22f d369 198 fI[1] = #3c03 b18c b5dc c22f d36a 199 fI[0] == strtox 200 201 202 Input: 1.234567890123456789 203 204 strtox consumes 20 bytes and returns 17 205 with bits = #3fff 9e06 5214 62cf db8d 206 g_xfmt(0) gives 20 bytes: "1.234567890123456789" 207 208 strtoIx returns 17, consuming 20 bytes. 209 fI[0] = #3fff 9e06 5214 62cf db8d 210 fI[1] = #3fff 9e06 5214 62cf db8e 211 fI[0] == strtox 212 213 214 Input: 1.234567890123456789e301 215 216 strtox consumes 24 bytes and returns 33 217 with bits = #43e7 937a 8baf ab20 980c 218 g_xfmt(0) gives 25 bytes: "1.234567890123456789e+301" 219 220 strtoIx returns 33, consuming 24 bytes. 221 fI[0] = #43e7 937a 8baf ab20 980b 222 fI[1] = #43e7 937a 8baf ab20 980c 223 fI[1] == strtox 224 225 226 Input: 1.234567890123456789e-301 227 228 strtox consumes 25 bytes and returns 33 229 with bits = #3c17 a953 271a 5d06 9ad9 230 g_xfmt(0) gives 25 bytes: "1.234567890123456789e-301" 231 232 strtoIx returns 33, consuming 25 bytes. 233 fI[0] = #3c17 a953 271a 5d06 9ad8 234 fI[1] = #3c17 a953 271a 5d06 9ad9 235 fI[1] == strtox 236 237 238 Input: 1.234567890123456789e-321 239 240 strtox consumes 25 bytes and returns 33 241 with bits = #3bd4 f9e1 1b4c ea6d cce9 242 g_xfmt(0) gives 25 bytes: "1.234567890123456789e-321" 243 244 strtoIx returns 33, consuming 25 bytes. 245 fI[0] = #3bd4 f9e1 1b4c ea6d cce8 246 fI[1] = #3bd4 f9e1 1b4c ea6d cce9 247 fI[1] == strtox 248 249 250 Input: 1e23 251 252 strtox consumes 4 bytes and returns 1 253 with bits = #404b a968 163f a57 b400 254 g_xfmt(0) gives 5 bytes: "1e+23" 255 256 strtoIx returns 1, consuming 4 bytes. 257 fI[0] == fI[1] == strtox 258 259 260 Input: 1e310 261 262 strtox consumes 5 bytes and returns 33 263 with bits = #4404 de81 e40a 34b cf50 264 g_xfmt(0) gives 6 bytes: "1e+310" 265 266 strtoIx returns 33, consuming 5 bytes. 267 fI[0] = #4404 de81 e40a 34b cf4f 268 fI[1] = #4404 de81 e40a 34b cf50 269 fI[1] == strtox 270 271 272 Input: 9.0259718793241475e-277 273 274 strtox consumes 23 bytes and returns 33 275 with bits = #3c69 ffff ffff ffff fcf7 276 g_xfmt(0) gives 23 bytes: "9.0259718793241475e-277" 277 278 strtoIx returns 33, consuming 23 bytes. 279 fI[0] = #3c69 ffff ffff ffff fcf6 280 fI[1] = #3c69 ffff ffff ffff fcf7 281 fI[1] == strtox 282 283 284 Input: 9.025971879324147880346310405869e-277 285 286 strtox consumes 37 bytes and returns 17 287 with bits = #3c6a 8000 0 0 0 288 g_xfmt(0) gives 26 bytes: "9.0259718793241478803e-277" 289 290 strtoIx returns 17, consuming 37 bytes. 291 fI[0] = #3c6a 8000 0 0 0 292 fI[1] = #3c6a 8000 0 0 1 293 fI[0] == strtox 294 295 296 Input: 9.025971879324147880346310405868e-277 297 298 strtox consumes 37 bytes and returns 33 299 with bits = #3c6a 8000 0 0 0 300 g_xfmt(0) gives 26 bytes: "9.0259718793241478803e-277" 301 302 strtoIx returns 33, consuming 37 bytes. 303 fI[0] = #3c69 ffff ffff ffff ffff 304 fI[1] = #3c6a 8000 0 0 0 305 fI[1] == strtox 306 307 308 Input: 2.2250738585072014e-308 309 310 strtox consumes 23 bytes and returns 17 311 with bits = #3c01 8000 0 0 46 312 g_xfmt(0) gives 23 bytes: "2.2250738585072014e-308" 313 314 strtoIx returns 17, consuming 23 bytes. 315 fI[0] = #3c01 8000 0 0 46 316 fI[1] = #3c01 8000 0 0 47 317 fI[0] == strtox 318 319 320 Input: 2.2250738585072013e-308 321 322 strtox consumes 23 bytes and returns 17 323 with bits = #3c00 ffff ffff ffff fd4f 324 g_xfmt(0) gives 23 bytes: "2.2250738585072013e-308" 325 326 strtoIx returns 17, consuming 23 bytes. 327 fI[0] = #3c00 ffff ffff ffff fd4f 328 fI[1] = #3c00 ffff ffff ffff fd50 329 fI[0] == strtox 330 331 Rounding mode for strtor... changed from 1 (nearest) to 0 (toward zero) 332 333 Input: 1.1 334 335 strtox consumes 3 bytes and returns 17 336 with bits = #3fff 8ccc cccc cccc cccc 337 g_xfmt(0) gives 21 bytes: "1.0999999999999999999" 338 339 strtoIx returns 33, consuming 3 bytes. 340 fI[0] = #3fff 8ccc cccc cccc cccc 341 fI[1] = #3fff 8ccc cccc cccc cccd 342 fI[0] == strtox 343 344 345 Input: -1.1 346 347 strtox consumes 4 bytes and returns 25 348 with bits = #bfff 8ccc cccc cccc cccc 349 g_xfmt(0) gives 22 bytes: "-1.0999999999999999999" 350 351 strtoIx returns 41, consuming 4 bytes. 352 fI[0] = #bfff 8ccc cccc cccc cccd 353 fI[1] = #bfff 8ccc cccc cccc cccc 354 fI[1] == strtox 355 356 357 Input: 1.2 358 359 strtox consumes 3 bytes and returns 17 360 with bits = #3fff 9999 9999 9999 9999 361 g_xfmt(0) gives 21 bytes: "1.1999999999999999999" 362 363 strtoIx returns 33, consuming 3 bytes. 364 fI[0] = #3fff 9999 9999 9999 9999 365 fI[1] = #3fff 9999 9999 9999 999a 366 fI[0] == strtox 367 368 369 Input: -1.2 370 371 strtox consumes 4 bytes and returns 25 372 with bits = #bfff 9999 9999 9999 9999 373 g_xfmt(0) gives 22 bytes: "-1.1999999999999999999" 374 375 strtoIx returns 41, consuming 4 bytes. 376 fI[0] = #bfff 9999 9999 9999 999a 377 fI[1] = #bfff 9999 9999 9999 9999 378 fI[1] == strtox 379 380 381 Input: 1.3 382 383 strtox consumes 3 bytes and returns 17 384 with bits = #3fff a666 6666 6666 6666 385 g_xfmt(0) gives 3 bytes: "1.3" 386 387 strtoIx returns 17, consuming 3 bytes. 388 fI[0] = #3fff a666 6666 6666 6666 389 fI[1] = #3fff a666 6666 6666 6667 390 fI[0] == strtox 391 392 393 Input: -1.3 394 395 strtox consumes 4 bytes and returns 25 396 with bits = #bfff a666 6666 6666 6666 397 g_xfmt(0) gives 4 bytes: "-1.3" 398 399 strtoIx returns 25, consuming 4 bytes. 400 fI[0] = #bfff a666 6666 6666 6667 401 fI[1] = #bfff a666 6666 6666 6666 402 fI[1] == strtox 403 404 405 Input: 1.4 406 407 strtox consumes 3 bytes and returns 17 408 with bits = #3fff b333 3333 3333 3333 409 g_xfmt(0) gives 3 bytes: "1.4" 410 411 strtoIx returns 17, consuming 3 bytes. 412 fI[0] = #3fff b333 3333 3333 3333 413 fI[1] = #3fff b333 3333 3333 3334 414 fI[0] == strtox 415 416 417 Input: -1.4 418 419 strtox consumes 4 bytes and returns 25 420 with bits = #bfff b333 3333 3333 3333 421 g_xfmt(0) gives 4 bytes: "-1.4" 422 423 strtoIx returns 25, consuming 4 bytes. 424 fI[0] = #bfff b333 3333 3333 3334 425 fI[1] = #bfff b333 3333 3333 3333 426 fI[1] == strtox 427 428 429 Input: 1.5 430 431 strtox consumes 3 bytes and returns 1 432 with bits = #3fff c000 0 0 0 433 g_xfmt(0) gives 3 bytes: "1.5" 434 435 strtoIx returns 1, consuming 3 bytes. 436 fI[0] == fI[1] == strtox 437 438 439 Input: -1.5 440 441 strtox consumes 4 bytes and returns 9 442 with bits = #bfff c000 0 0 0 443 g_xfmt(0) gives 4 bytes: "-1.5" 444 445 strtoIx returns 9, consuming 4 bytes. 446 fI[0] == fI[1] == strtox 447 448 449 Input: 1.6 450 451 strtox consumes 3 bytes and returns 17 452 with bits = #3fff cccc cccc cccc cccc 453 g_xfmt(0) gives 21 bytes: "1.5999999999999999999" 454 455 strtoIx returns 33, consuming 3 bytes. 456 fI[0] = #3fff cccc cccc cccc cccc 457 fI[1] = #3fff cccc cccc cccc cccd 458 fI[0] == strtox 459 460 461 Input: -1.6 462 463 strtox consumes 4 bytes and returns 25 464 with bits = #bfff cccc cccc cccc cccc 465 g_xfmt(0) gives 22 bytes: "-1.5999999999999999999" 466 467 strtoIx returns 41, consuming 4 bytes. 468 fI[0] = #bfff cccc cccc cccc cccd 469 fI[1] = #bfff cccc cccc cccc cccc 470 fI[1] == strtox 471 472 473 Input: 1.7 474 475 strtox consumes 3 bytes and returns 17 476 with bits = #3fff d999 9999 9999 9999 477 g_xfmt(0) gives 21 bytes: "1.6999999999999999999" 478 479 strtoIx returns 33, consuming 3 bytes. 480 fI[0] = #3fff d999 9999 9999 9999 481 fI[1] = #3fff d999 9999 9999 999a 482 fI[0] == strtox 483 484 485 Input: -1.7 486 487 strtox consumes 4 bytes and returns 25 488 with bits = #bfff d999 9999 9999 9999 489 g_xfmt(0) gives 22 bytes: "-1.6999999999999999999" 490 491 strtoIx returns 41, consuming 4 bytes. 492 fI[0] = #bfff d999 9999 9999 999a 493 fI[1] = #bfff d999 9999 9999 9999 494 fI[1] == strtox 495 496 497 Input: 1.8 498 499 strtox consumes 3 bytes and returns 17 500 with bits = #3fff e666 6666 6666 6666 501 g_xfmt(0) gives 3 bytes: "1.8" 502 503 strtoIx returns 17, consuming 3 bytes. 504 fI[0] = #3fff e666 6666 6666 6666 505 fI[1] = #3fff e666 6666 6666 6667 506 fI[0] == strtox 507 508 509 Input: -1.8 510 511 strtox consumes 4 bytes and returns 25 512 with bits = #bfff e666 6666 6666 6666 513 g_xfmt(0) gives 4 bytes: "-1.8" 514 515 strtoIx returns 25, consuming 4 bytes. 516 fI[0] = #bfff e666 6666 6666 6667 517 fI[1] = #bfff e666 6666 6666 6666 518 fI[1] == strtox 519 520 521 Input: 1.9 522 523 strtox consumes 3 bytes and returns 17 524 with bits = #3fff f333 3333 3333 3333 525 g_xfmt(0) gives 3 bytes: "1.9" 526 527 strtoIx returns 17, consuming 3 bytes. 528 fI[0] = #3fff f333 3333 3333 3333 529 fI[1] = #3fff f333 3333 3333 3334 530 fI[0] == strtox 531 532 533 Input: -1.9 534 535 strtox consumes 4 bytes and returns 25 536 with bits = #bfff f333 3333 3333 3333 537 g_xfmt(0) gives 4 bytes: "-1.9" 538 539 strtoIx returns 25, consuming 4 bytes. 540 fI[0] = #bfff f333 3333 3333 3334 541 fI[1] = #bfff f333 3333 3333 3333 542 fI[1] == strtox 543 544 Rounding mode for strtor... changed from 0 (toward zero) to 1 (nearest) 545 546 Input: 1.1 547 548 strtox consumes 3 bytes and returns 33 549 with bits = #3fff 8ccc cccc cccc cccd 550 g_xfmt(0) gives 3 bytes: "1.1" 551 552 strtoIx returns 33, consuming 3 bytes. 553 fI[0] = #3fff 8ccc cccc cccc cccc 554 fI[1] = #3fff 8ccc cccc cccc cccd 555 fI[1] == strtox 556 557 558 Input: -1.1 559 560 strtox consumes 4 bytes and returns 41 561 with bits = #bfff 8ccc cccc cccc cccd 562 g_xfmt(0) gives 4 bytes: "-1.1" 563 564 strtoIx returns 41, consuming 4 bytes. 565 fI[0] = #bfff 8ccc cccc cccc cccd 566 fI[1] = #bfff 8ccc cccc cccc cccc 567 fI[0] == strtox 568 569 570 Input: 1.2 571 572 strtox consumes 3 bytes and returns 33 573 with bits = #3fff 9999 9999 9999 999a 574 g_xfmt(0) gives 3 bytes: "1.2" 575 576 strtoIx returns 33, consuming 3 bytes. 577 fI[0] = #3fff 9999 9999 9999 9999 578 fI[1] = #3fff 9999 9999 9999 999a 579 fI[1] == strtox 580 581 582 Input: -1.2 583 584 strtox consumes 4 bytes and returns 41 585 with bits = #bfff 9999 9999 9999 999a 586 g_xfmt(0) gives 4 bytes: "-1.2" 587 588 strtoIx returns 41, consuming 4 bytes. 589 fI[0] = #bfff 9999 9999 9999 999a 590 fI[1] = #bfff 9999 9999 9999 9999 591 fI[0] == strtox 592 593 594 Input: 1.3 595 596 strtox consumes 3 bytes and returns 17 597 with bits = #3fff a666 6666 6666 6666 598 g_xfmt(0) gives 3 bytes: "1.3" 599 600 strtoIx returns 17, consuming 3 bytes. 601 fI[0] = #3fff a666 6666 6666 6666 602 fI[1] = #3fff a666 6666 6666 6667 603 fI[0] == strtox 604 605 606 Input: -1.3 607 608 strtox consumes 4 bytes and returns 25 609 with bits = #bfff a666 6666 6666 6666 610 g_xfmt(0) gives 4 bytes: "-1.3" 611 612 strtoIx returns 25, consuming 4 bytes. 613 fI[0] = #bfff a666 6666 6666 6667 614 fI[1] = #bfff a666 6666 6666 6666 615 fI[1] == strtox 616 617 618 Input: 1.4 619 620 strtox consumes 3 bytes and returns 17 621 with bits = #3fff b333 3333 3333 3333 622 g_xfmt(0) gives 3 bytes: "1.4" 623 624 strtoIx returns 17, consuming 3 bytes. 625 fI[0] = #3fff b333 3333 3333 3333 626 fI[1] = #3fff b333 3333 3333 3334 627 fI[0] == strtox 628 629 630 Input: -1.4 631 632 strtox consumes 4 bytes and returns 25 633 with bits = #bfff b333 3333 3333 3333 634 g_xfmt(0) gives 4 bytes: "-1.4" 635 636 strtoIx returns 25, consuming 4 bytes. 637 fI[0] = #bfff b333 3333 3333 3334 638 fI[1] = #bfff b333 3333 3333 3333 639 fI[1] == strtox 640 641 642 Input: 1.5 643 644 strtox consumes 3 bytes and returns 1 645 with bits = #3fff c000 0 0 0 646 g_xfmt(0) gives 3 bytes: "1.5" 647 648 strtoIx returns 1, consuming 3 bytes. 649 fI[0] == fI[1] == strtox 650 651 652 Input: -1.5 653 654 strtox consumes 4 bytes and returns 9 655 with bits = #bfff c000 0 0 0 656 g_xfmt(0) gives 4 bytes: "-1.5" 657 658 strtoIx returns 9, consuming 4 bytes. 659 fI[0] == fI[1] == strtox 660 661 662 Input: 1.6 663 664 strtox consumes 3 bytes and returns 33 665 with bits = #3fff cccc cccc cccc cccd 666 g_xfmt(0) gives 3 bytes: "1.6" 667 668 strtoIx returns 33, consuming 3 bytes. 669 fI[0] = #3fff cccc cccc cccc cccc 670 fI[1] = #3fff cccc cccc cccc cccd 671 fI[1] == strtox 672 673 674 Input: -1.6 675 676 strtox consumes 4 bytes and returns 41 677 with bits = #bfff cccc cccc cccc cccd 678 g_xfmt(0) gives 4 bytes: "-1.6" 679 680 strtoIx returns 41, consuming 4 bytes. 681 fI[0] = #bfff cccc cccc cccc cccd 682 fI[1] = #bfff cccc cccc cccc cccc 683 fI[0] == strtox 684 685 686 Input: 1.7 687 688 strtox consumes 3 bytes and returns 33 689 with bits = #3fff d999 9999 9999 999a 690 g_xfmt(0) gives 3 bytes: "1.7" 691 692 strtoIx returns 33, consuming 3 bytes. 693 fI[0] = #3fff d999 9999 9999 9999 694 fI[1] = #3fff d999 9999 9999 999a 695 fI[1] == strtox 696 697 698 Input: -1.7 699 700 strtox consumes 4 bytes and returns 41 701 with bits = #bfff d999 9999 9999 999a 702 g_xfmt(0) gives 4 bytes: "-1.7" 703 704 strtoIx returns 41, consuming 4 bytes. 705 fI[0] = #bfff d999 9999 9999 999a 706 fI[1] = #bfff d999 9999 9999 9999 707 fI[0] == strtox 708 709 710 Input: 1.8 711 712 strtox consumes 3 bytes and returns 17 713 with bits = #3fff e666 6666 6666 6666 714 g_xfmt(0) gives 3 bytes: "1.8" 715 716 strtoIx returns 17, consuming 3 bytes. 717 fI[0] = #3fff e666 6666 6666 6666 718 fI[1] = #3fff e666 6666 6666 6667 719 fI[0] == strtox 720 721 722 Input: -1.8 723 724 strtox consumes 4 bytes and returns 25 725 with bits = #bfff e666 6666 6666 6666 726 g_xfmt(0) gives 4 bytes: "-1.8" 727 728 strtoIx returns 25, consuming 4 bytes. 729 fI[0] = #bfff e666 6666 6666 6667 730 fI[1] = #bfff e666 6666 6666 6666 731 fI[1] == strtox 732 733 734 Input: 1.9 735 736 strtox consumes 3 bytes and returns 17 737 with bits = #3fff f333 3333 3333 3333 738 g_xfmt(0) gives 3 bytes: "1.9" 739 740 strtoIx returns 17, consuming 3 bytes. 741 fI[0] = #3fff f333 3333 3333 3333 742 fI[1] = #3fff f333 3333 3333 3334 743 fI[0] == strtox 744 745 746 Input: -1.9 747 748 strtox consumes 4 bytes and returns 25 749 with bits = #bfff f333 3333 3333 3333 750 g_xfmt(0) gives 4 bytes: "-1.9" 751 752 strtoIx returns 25, consuming 4 bytes. 753 fI[0] = #bfff f333 3333 3333 3334 754 fI[1] = #bfff f333 3333 3333 3333 755 fI[1] == strtox 756 757 Rounding mode for strtor... changed from 1 (nearest) to 2 (toward +Infinity) 758 759 Input: 1.1 760 761 strtox consumes 3 bytes and returns 33 762 with bits = #3fff 8ccc cccc cccc cccd 763 g_xfmt(0) gives 3 bytes: "1.1" 764 765 strtoIx returns 33, consuming 3 bytes. 766 fI[0] = #3fff 8ccc cccc cccc cccc 767 fI[1] = #3fff 8ccc cccc cccc cccd 768 fI[1] == strtox 769 770 771 Input: -1.1 772 773 strtox consumes 4 bytes and returns 25 774 with bits = #bfff 8ccc cccc cccc cccc 775 g_xfmt(0) gives 22 bytes: "-1.0999999999999999999" 776 777 strtoIx returns 41, consuming 4 bytes. 778 fI[0] = #bfff 8ccc cccc cccc cccd 779 fI[1] = #bfff 8ccc cccc cccc cccc 780 fI[1] == strtox 781 782 783 Input: 1.2 784 785 strtox consumes 3 bytes and returns 33 786 with bits = #3fff 9999 9999 9999 999a 787 g_xfmt(0) gives 3 bytes: "1.2" 788 789 strtoIx returns 33, consuming 3 bytes. 790 fI[0] = #3fff 9999 9999 9999 9999 791 fI[1] = #3fff 9999 9999 9999 999a 792 fI[1] == strtox 793 794 795 Input: -1.2 796 797 strtox consumes 4 bytes and returns 25 798 with bits = #bfff 9999 9999 9999 9999 799 g_xfmt(0) gives 22 bytes: "-1.1999999999999999999" 800 801 strtoIx returns 41, consuming 4 bytes. 802 fI[0] = #bfff 9999 9999 9999 999a 803 fI[1] = #bfff 9999 9999 9999 9999 804 fI[1] == strtox 805 806 807 Input: 1.3 808 809 strtox consumes 3 bytes and returns 33 810 with bits = #3fff a666 6666 6666 6667 811 g_xfmt(0) gives 21 bytes: "1.3000000000000000001" 812 813 strtoIx returns 17, consuming 3 bytes. 814 fI[0] = #3fff a666 6666 6666 6666 815 fI[1] = #3fff a666 6666 6666 6667 816 fI[1] == strtox 817 818 819 Input: -1.3 820 821 strtox consumes 4 bytes and returns 25 822 with bits = #bfff a666 6666 6666 6666 823 g_xfmt(0) gives 4 bytes: "-1.3" 824 825 strtoIx returns 25, consuming 4 bytes. 826 fI[0] = #bfff a666 6666 6666 6667 827 fI[1] = #bfff a666 6666 6666 6666 828 fI[1] == strtox 829 830 831 Input: 1.4 832 833 strtox consumes 3 bytes and returns 33 834 with bits = #3fff b333 3333 3333 3334 835 g_xfmt(0) gives 21 bytes: "1.4000000000000000001" 836 837 strtoIx returns 17, consuming 3 bytes. 838 fI[0] = #3fff b333 3333 3333 3333 839 fI[1] = #3fff b333 3333 3333 3334 840 fI[1] == strtox 841 842 843 Input: -1.4 844 845 strtox consumes 4 bytes and returns 25 846 with bits = #bfff b333 3333 3333 3333 847 g_xfmt(0) gives 4 bytes: "-1.4" 848 849 strtoIx returns 25, consuming 4 bytes. 850 fI[0] = #bfff b333 3333 3333 3334 851 fI[1] = #bfff b333 3333 3333 3333 852 fI[1] == strtox 853 854 855 Input: 1.5 856 857 strtox consumes 3 bytes and returns 1 858 with bits = #3fff c000 0 0 0 859 g_xfmt(0) gives 3 bytes: "1.5" 860 861 strtoIx returns 1, consuming 3 bytes. 862 fI[0] == fI[1] == strtox 863 864 865 Input: -1.5 866 867 strtox consumes 4 bytes and returns 9 868 with bits = #bfff c000 0 0 0 869 g_xfmt(0) gives 4 bytes: "-1.5" 870 871 strtoIx returns 9, consuming 4 bytes. 872 fI[0] == fI[1] == strtox 873 874 875 Input: 1.6 876 877 strtox consumes 3 bytes and returns 33 878 with bits = #3fff cccc cccc cccc cccd 879 g_xfmt(0) gives 3 bytes: "1.6" 880 881 strtoIx returns 33, consuming 3 bytes. 882 fI[0] = #3fff cccc cccc cccc cccc 883 fI[1] = #3fff cccc cccc cccc cccd 884 fI[1] == strtox 885 886 887 Input: -1.6 888 889 strtox consumes 4 bytes and returns 25 890 with bits = #bfff cccc cccc cccc cccc 891 g_xfmt(0) gives 22 bytes: "-1.5999999999999999999" 892 893 strtoIx returns 41, consuming 4 bytes. 894 fI[0] = #bfff cccc cccc cccc cccd 895 fI[1] = #bfff cccc cccc cccc cccc 896 fI[1] == strtox 897 898 899 Input: 1.7 900 901 strtox consumes 3 bytes and returns 33 902 with bits = #3fff d999 9999 9999 999a 903 g_xfmt(0) gives 3 bytes: "1.7" 904 905 strtoIx returns 33, consuming 3 bytes. 906 fI[0] = #3fff d999 9999 9999 9999 907 fI[1] = #3fff d999 9999 9999 999a 908 fI[1] == strtox 909 910 911 Input: -1.7 912 913 strtox consumes 4 bytes and returns 25 914 with bits = #bfff d999 9999 9999 9999 915 g_xfmt(0) gives 22 bytes: "-1.6999999999999999999" 916 917 strtoIx returns 41, consuming 4 bytes. 918 fI[0] = #bfff d999 9999 9999 999a 919 fI[1] = #bfff d999 9999 9999 9999 920 fI[1] == strtox 921 922 923 Input: 1.8 924 925 strtox consumes 3 bytes and returns 33 926 with bits = #3fff e666 6666 6666 6667 927 g_xfmt(0) gives 21 bytes: "1.8000000000000000001" 928 929 strtoIx returns 17, consuming 3 bytes. 930 fI[0] = #3fff e666 6666 6666 6666 931 fI[1] = #3fff e666 6666 6666 6667 932 fI[1] == strtox 933 934 935 Input: -1.8 936 937 strtox consumes 4 bytes and returns 25 938 with bits = #bfff e666 6666 6666 6666 939 g_xfmt(0) gives 4 bytes: "-1.8" 940 941 strtoIx returns 25, consuming 4 bytes. 942 fI[0] = #bfff e666 6666 6666 6667 943 fI[1] = #bfff e666 6666 6666 6666 944 fI[1] == strtox 945 946 947 Input: 1.9 948 949 strtox consumes 3 bytes and returns 33 950 with bits = #3fff f333 3333 3333 3334 951 g_xfmt(0) gives 21 bytes: "1.9000000000000000001" 952 953 strtoIx returns 17, consuming 3 bytes. 954 fI[0] = #3fff f333 3333 3333 3333 955 fI[1] = #3fff f333 3333 3333 3334 956 fI[1] == strtox 957 958 959 Input: -1.9 960 961 strtox consumes 4 bytes and returns 25 962 with bits = #bfff f333 3333 3333 3333 963 g_xfmt(0) gives 4 bytes: "-1.9" 964 965 strtoIx returns 25, consuming 4 bytes. 966 fI[0] = #bfff f333 3333 3333 3334 967 fI[1] = #bfff f333 3333 3333 3333 968 fI[1] == strtox 969 970 Rounding mode for strtor... changed from 2 (toward +Infinity) to 3 (toward -Infinity) 971 972 Input: 1.1 973 974 strtox consumes 3 bytes and returns 17 975 with bits = #3fff 8ccc cccc cccc cccc 976 g_xfmt(0) gives 21 bytes: "1.0999999999999999999" 977 978 strtoIx returns 33, consuming 3 bytes. 979 fI[0] = #3fff 8ccc cccc cccc cccc 980 fI[1] = #3fff 8ccc cccc cccc cccd 981 fI[0] == strtox 982 983 984 Input: -1.1 985 986 strtox consumes 4 bytes and returns 41 987 with bits = #bfff 8ccc cccc cccc cccd 988 g_xfmt(0) gives 4 bytes: "-1.1" 989 990 strtoIx returns 41, consuming 4 bytes. 991 fI[0] = #bfff 8ccc cccc cccc cccd 992 fI[1] = #bfff 8ccc cccc cccc cccc 993 fI[0] == strtox 994 995 996 Input: 1.2 997 998 strtox consumes 3 bytes and returns 17 999 with bits = #3fff 9999 9999 9999 9999 1000 g_xfmt(0) gives 21 bytes: "1.1999999999999999999" 1001 1002 strtoIx returns 33, consuming 3 bytes. 1003 fI[0] = #3fff 9999 9999 9999 9999 1004 fI[1] = #3fff 9999 9999 9999 999a 1005 fI[0] == strtox 1006 1007 1008 Input: -1.2 1009 1010 strtox consumes 4 bytes and returns 41 1011 with bits = #bfff 9999 9999 9999 999a 1012 g_xfmt(0) gives 4 bytes: "-1.2" 1013 1014 strtoIx returns 41, consuming 4 bytes. 1015 fI[0] = #bfff 9999 9999 9999 999a 1016 fI[1] = #bfff 9999 9999 9999 9999 1017 fI[0] == strtox 1018 1019 1020 Input: 1.3 1021 1022 strtox consumes 3 bytes and returns 17 1023 with bits = #3fff a666 6666 6666 6666 1024 g_xfmt(0) gives 3 bytes: "1.3" 1025 1026 strtoIx returns 17, consuming 3 bytes. 1027 fI[0] = #3fff a666 6666 6666 6666 1028 fI[1] = #3fff a666 6666 6666 6667 1029 fI[0] == strtox 1030 1031 1032 Input: -1.3 1033 1034 strtox consumes 4 bytes and returns 41 1035 with bits = #bfff a666 6666 6666 6667 1036 g_xfmt(0) gives 22 bytes: "-1.3000000000000000001" 1037 1038 strtoIx returns 25, consuming 4 bytes. 1039 fI[0] = #bfff a666 6666 6666 6667 1040 fI[1] = #bfff a666 6666 6666 6666 1041 fI[0] == strtox 1042 1043 1044 Input: 1.4 1045 1046 strtox consumes 3 bytes and returns 17 1047 with bits = #3fff b333 3333 3333 3333 1048 g_xfmt(0) gives 3 bytes: "1.4" 1049 1050 strtoIx returns 17, consuming 3 bytes. 1051 fI[0] = #3fff b333 3333 3333 3333 1052 fI[1] = #3fff b333 3333 3333 3334 1053 fI[0] == strtox 1054 1055 1056 Input: -1.4 1057 1058 strtox consumes 4 bytes and returns 41 1059 with bits = #bfff b333 3333 3333 3334 1060 g_xfmt(0) gives 22 bytes: "-1.4000000000000000001" 1061 1062 strtoIx returns 25, consuming 4 bytes. 1063 fI[0] = #bfff b333 3333 3333 3334 1064 fI[1] = #bfff b333 3333 3333 3333 1065 fI[0] == strtox 1066 1067 1068 Input: 1.5 1069 1070 strtox consumes 3 bytes and returns 1 1071 with bits = #3fff c000 0 0 0 1072 g_xfmt(0) gives 3 bytes: "1.5" 1073 1074 strtoIx returns 1, consuming 3 bytes. 1075 fI[0] == fI[1] == strtox 1076 1077 1078 Input: -1.5 1079 1080 strtox consumes 4 bytes and returns 9 1081 with bits = #bfff c000 0 0 0 1082 g_xfmt(0) gives 4 bytes: "-1.5" 1083 1084 strtoIx returns 9, consuming 4 bytes. 1085 fI[0] == fI[1] == strtox 1086 1087 1088 Input: 1.6 1089 1090 strtox consumes 3 bytes and returns 17 1091 with bits = #3fff cccc cccc cccc cccc 1092 g_xfmt(0) gives 21 bytes: "1.5999999999999999999" 1093 1094 strtoIx returns 33, consuming 3 bytes. 1095 fI[0] = #3fff cccc cccc cccc cccc 1096 fI[1] = #3fff cccc cccc cccc cccd 1097 fI[0] == strtox 1098 1099 1100 Input: -1.6 1101 1102 strtox consumes 4 bytes and returns 41 1103 with bits = #bfff cccc cccc cccc cccd 1104 g_xfmt(0) gives 4 bytes: "-1.6" 1105 1106 strtoIx returns 41, consuming 4 bytes. 1107 fI[0] = #bfff cccc cccc cccc cccd 1108 fI[1] = #bfff cccc cccc cccc cccc 1109 fI[0] == strtox 1110 1111 1112 Input: 1.7 1113 1114 strtox consumes 3 bytes and returns 17 1115 with bits = #3fff d999 9999 9999 9999 1116 g_xfmt(0) gives 21 bytes: "1.6999999999999999999" 1117 1118 strtoIx returns 33, consuming 3 bytes. 1119 fI[0] = #3fff d999 9999 9999 9999 1120 fI[1] = #3fff d999 9999 9999 999a 1121 fI[0] == strtox 1122 1123 1124 Input: -1.7 1125 1126 strtox consumes 4 bytes and returns 41 1127 with bits = #bfff d999 9999 9999 999a 1128 g_xfmt(0) gives 4 bytes: "-1.7" 1129 1130 strtoIx returns 41, consuming 4 bytes. 1131 fI[0] = #bfff d999 9999 9999 999a 1132 fI[1] = #bfff d999 9999 9999 9999 1133 fI[0] == strtox 1134 1135 1136 Input: 1.8 1137 1138 strtox consumes 3 bytes and returns 17 1139 with bits = #3fff e666 6666 6666 6666 1140 g_xfmt(0) gives 3 bytes: "1.8" 1141 1142 strtoIx returns 17, consuming 3 bytes. 1143 fI[0] = #3fff e666 6666 6666 6666 1144 fI[1] = #3fff e666 6666 6666 6667 1145 fI[0] == strtox 1146 1147 1148 Input: -1.8 1149 1150 strtox consumes 4 bytes and returns 41 1151 with bits = #bfff e666 6666 6666 6667 1152 g_xfmt(0) gives 22 bytes: "-1.8000000000000000001" 1153 1154 strtoIx returns 25, consuming 4 bytes. 1155 fI[0] = #bfff e666 6666 6666 6667 1156 fI[1] = #bfff e666 6666 6666 6666 1157 fI[0] == strtox 1158 1159 1160 Input: 1.9 1161 1162 strtox consumes 3 bytes and returns 17 1163 with bits = #3fff f333 3333 3333 3333 1164 g_xfmt(0) gives 3 bytes: "1.9" 1165 1166 strtoIx returns 17, consuming 3 bytes. 1167 fI[0] = #3fff f333 3333 3333 3333 1168 fI[1] = #3fff f333 3333 3333 3334 1169 fI[0] == strtox 1170 1171 1172 Input: -1.9 1173 1174 strtox consumes 4 bytes and returns 41 1175 with bits = #bfff f333 3333 3333 3334 1176 g_xfmt(0) gives 22 bytes: "-1.9000000000000000001" 1177 1178 strtoIx returns 25, consuming 4 bytes. 1179 fI[0] = #bfff f333 3333 3333 3334 1180 fI[1] = #bfff f333 3333 3333 3333 1181 fI[0] == strtox 1182 1183