[fpc-pascal] float calculates rubbish
Marco van de Voort
marcov at stack.nl
Sun Mar 6 23:02:17 CET 2005
> $ ./testlongfloat
> Am I producing a value overflow here or what's happening? The whole
> thing is running on i386 with fpc 1.9.4.
glib redefined float as 32-bit single, which has much lower precision, which
in turn causes the rounding.
Try recompiling the above test without glib, but with math (which contains
the Delphi/FPC float definition).
More information about the fpc-pascal