SQLite

All files named ”test/atof1.test”
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for test/atof1.test

2024-12-07
14:48
[bd21c4a0e7] part of check-in [81342fa6dd] On x64 hardware, round-trip uint64_t→double→uint64_t conversions fail for values greater than UINT64_MAX-2047. This caused the SQLite text-to-float converter routine to give incorrect results for values between '1.8446744073709550592eNNN' and '1.8446744073709551609eNNN' for any exponent NNN. This problem was introduced by check-in [761d8fd18b0ee868] and first appeared in version 3.47.0 and was reported by forum post 569a7209179a7f5e. Fixed by this check-in. (check-in: [81342fa6dd] user: drh branch: trunk, size: 3839)
2024-10-01
20:29
[7ec56debc0] part of check-in [f622b52024] Remove all code that makes use of the C-language "long double" datatype. (check-in: [f622b52024] user: drh branch: omit-long-double, size: 2542)
2023-07-03
18:18
[f2765d7fdc] part of check-in [b7850fd480] Enhance sqlite3AtoF() so that it honors the USELONGDOUBLE test-control. Enable the test/atof1.test module on non-intel platforms. (check-in: [b7850fd480] user: drh branch: fp-to-decimal-refactor, size: 2573)
10:00
[191ce0d7b0] part of check-in [d3c4880710] Fix one constant in the normalization logic. Improved error output from atof1.test. (check-in: [d3c4880710] user: drh branch: fp-to-decimal-branch1, size: 2648)
09:07
[b4dbc37187] part of check-in [4fa6938dac] Replace the dodgy error estimating logic in the previous check-in with full-up Dekker double-double multiplication, and this idea works much better. There are still a few inaccuracies, but it is much closer. (check-in: [4fa6938dac] user: drh branch: fp-to-decimal-branch1, size: 2449)
2022-03-10
11:48
[1f24a6f16e] part of check-in [4173819cd2] Only run atof1.test on x86_64 machines. (check-in: [4173819cd2] user: drh branch: trunk, size: 2446)
2021-12-30
12:26
[77e8517df1] part of check-in [986a94d036] Disable the atof1.test test module on non-x64 hardware. (check-in: [986a94d036] user: drh branch: branch-3.37, size: 2492)
2020-08-27
16:28
[10049623e7] part of check-in [aafb7a2104] Apply the same fix for ticket [9eda2697f5cc1aba] to text-to-integer conversions that was done for floating point conversions by check-in [1c76f1d8ec0937a2]. (check-in: [aafb7a2104] user: drh branch: trunk, size: 2379)
2020-01-08
12:17
[1ccfc96a68] part of check-in [1c76f1d8ec] When doing a text-to-double conversion on a BLOB with an odd number of bytes and assuming a UTF16 encoding, ignore the last byte. Ticket [9eda2697f5cc1aba]. (check-in: [1c76f1d8ec] user: drh branch: trunk, size: 2271)
2015-11-06
14:59
[ff0b0156fd] part of check-in [a3f7614b20] A different approach to handling integer/float comparisons. This seems to work better on systems where "long double" and "double" are the same type, but still needs refinement and testing. (check-in: [a3f7614b20] user: drh branch: int-float-precision, size: 1645)
2013-11-26
16:20
[08a61df936] part of check-in [fafca560f2] Do not try to run the atof1.test test script on ARM hardware which lacks the "long double" type. (check-in: [fafca560f2] user: drh branch: trunk, size: 1686)
2012-06-21
15:02
[9bf1d25180] part of check-in [0f706acfc7] Disable the atof1.test module when compiling on MSVC. (check-in: [0f706acfc7] user: drh branch: floating-point-conversions, size: 1647)
2012-06-19
03:35
[b765ba6bc0] part of check-in [fd7bd4a593] Round-trip conversions of real->text->real are now lossless on x64 with GCC. Untested on other platforms so far. Still a corner-case problem with round(). (check-in: [fd7bd4a593] user: drh branch: floating-point-conversions, size: 1578)
03:11
[6e6d413371] part of check-in [8ecffca900] Improved accuracy on text-to-real and real-to-text conversions. Most conversions now round-trip correctly. Still need to fix some corner cases. (check-in: [8ecffca900] user: drh branch: floating-point-conversions, size: 1750)
00:45
Added: [1f6dc0f47f] part of check-in [699b792c6a] Improved rounding accuracy on text-to-float conversions. (check-in: [699b792c6a] user: drh branch: trunk, size: 935)