tw1374.pp 615 B

12345678910111213141516171819202122
  1. { Source provided for Free Pascal Bug Report 1374 }
  2. { Submitted by "Christian Keck" on 2001-02-01 }
  3. { e-mail: [email protected] }
  4. program realtest;
  5. var temp : longint;
  6. low : byte;
  7. high : byte;
  8. DLL_Version : extended{real};
  9. begin
  10. temp:= 14340; { This value is normaly retrieved form an external DLL }
  11. low:= ((temp shr 8) and $FF);
  12. high:= (temp and $FF); { Some calculation... }
  13. DLL_Version:= high + (low/100); { to get an real result }
  14. { ... }
  15. if DLL_Version < 4.56 then { 4.560000000000000E+000 < 4.56 ?!?! }
  16. writeln ('Error! 4.56 < 4.56');
  17. end.