[fpc-pascal] Currency constant wrongly stored in generated EXE?

Pierre Free Pascal pierre at freepascal.org
Mon May 12 17:37:45 CEST 2014


  Did you check that infamous coprocessor Pentium FDIV bug?

http://en.wikipedia.org/wiki/Pentium_FDIV_bug#Affected_models

The even give values to test:


The correct value is

    4195835/3145727 = 1.333820449136241002 

However, the value returned by the flawed Pentium is incorrect at or beyond
four digits:[9]

    4195835/3145727 = 1.333739068902037589

Maybe that is your problem?

Pierre



More information about the fpc-pascal mailing list