[fpc-pascal] Floating point question

Bart bartjunk64 at gmail.com
Sat Jan 27 17:20:15 CET 2024


On Sat, Jan 27, 2024 at 1:40 PM Thomas Kurz via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:

> 2. According to both C, Sqlite and Excel, the value of "t" in line 41 should be "8427.02291666667". FPC gives me a difference of approximately 39/86400.

Again: if I cast all flots involved to double both the result of
maketime and the calculation (8427 - 0.5) + (12/ 24.0) + (33/1440.0) +
(0/86400.0) give this value: 8427.02291666666680000000

-- 
Bart


More information about the fpc-pascal mailing list