[fpc-pascal] compare currency and double
xrfang at gmail.com
Sun Dec 7 15:44:18 CET 2014
I have the following code:
val := 2345.67;
res := 1e300;
if val >= res then WriteLn('val >=res')
else WriteLn('val < res');
The program compile and runs correctly on Linux x64, and Win7 32bit, but
failed (SIGFPE) on Win7 64bit.
Can I safely compare a Currency against a Double?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal