Turbo Pascal compatiblity mode doesn't implement issues of "round" function
Original Reporter info from Mantis: kjen93
-
Reporter name:
Original Reporter info from Mantis: kjen93
- Reporter name:
Description:
Let's try the following code in Turbo Pascal 7.0:
begin
writeln(round(9/2));
end.
It will return "5".
But when we compile it with FPC in TP compat. mode we receive "4".
Steps to reproduce:
Start FPC, set compliler to TP compat. mode and run the following source:
begin
writeln(round(9/2));
end.
Then compare it to Turbo Pascal 7 output.
Mantis conversion info:
- Mantis ID: 21131
- OS: Windows XP
- OS Build: x86 Professional
- Platform: Win32
- Version: 2.4.2