[fpc-pascal] Floating point question

James Richters james.richters at productionautomation.net
Mon Feb 5 02:01:50 CET 2024


I got the -CF argument to work... it's not just -CF, it's is -CF and then the limiting precision...
-CF32 for single, or -CF64 for double,   but it won't take -CF80 so Extended still doesn't come out right.

With -CF64 I get better results but it's not completely doing it the old way.
BB = 8427+33/1440.0;  comes out the same as doing:
BB = Extended(8427+Double(33/1440));  which is  8427.02291666666678793000

But 
BB = 8427+33/1440; still comes out right:  8427.02291666666666625000

I still can't get  $EXCESSPRECISION   to work.

James



More information about the fpc-pascal mailing list