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

LacaK lacak at zoznam.sk
Tue May 13 07:28:26 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?
>   

Thank you Pierre for idea!
But it is not my problem. I get correct results:
  for extended: 1.3338204491362411E+0000
  for fouble:  1.33382044913624E+000

Because I do not have "old" Pentium CPU, but newer GenuineIntel Intel(R) 
Celeron(R) CPU 1.70GHz [x86 Family 15 Model 1 Stepping 3]
Thanks
-Laco.




More information about the fpc-pascal mailing list