[fpc-pascal] Floating point question
James Richters
james.richters at productionautomation.net
Sun Feb 4 23:21:21 CET 2024
Shouldn’t this do all calculations as Extended?
AA = Extended(8427+33/1440.0);
It does NOT
Const
AA = Extended(8427+33/1440.0);
BB = 8427+33/1440;
CC = 8427.0229166666666666666666666667;
A_Ext = 8427.02246093750000000000
B_Ext = 8427.02291666666666625000
C_Ext = 8427.02291666666666625000
A_Dbl = 8427.02246093750000000000
B_Dbl = 8427.02291666666680000000
C_Dbl = 8427.02291666666680000000
A_Sgl = 8427.02246100000000000000
B_Sgl = 8427.02246100000000000000
C_Sgl = 8427.02246100000000000000
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20240204/44079877/attachment-0001.htm>
More information about the fpc-pascal
mailing list