[fpc-pascal] Floating point question

Adriaan van Os adriaan at adriaan.biz
Sat Jan 27 19:20:51 CET 2024


Thomas Kurz via fpc-pascal wrote:

> 1. The "writeln" in line 32 correctly prints "0.0000" when (cross-) compiling to win64, but "39.375" when compiling to win32 (with ppc386).

Maybe the word "cross-compiling" gives a clue ? In a cross-compiler, floating-point operations of 
constants must be software-emulated, as the target hardware is (normally) not available to the host 
compiler. In theory, this shouldn't be noticeable, unless there is a bug somewhere.

Regards,

Adriaan van Os



More information about the fpc-pascal mailing list