Round does not use banker's rounding on ppc/arm/sparc
Original Reporter info from Mantis: Phil
-
Reporter name:
Original Reporter info from Mantis: Phil
- Reporter name:
Description:
rtl.pdf says Round uses banker's round, but I'm not seeing that on Mac:
uses
Math;
begin
WriteLn(Ord(GetRoundMode));
WriteLn(Round((71 + 50) / 2));
WriteLn(Round(60.5));
end.
Rounded values are 60 on Windows, correct for banker's round. But on Mac rounded values are 61, which is not banker's round.
Thanks.
-Phil
Mantis conversion info:
- Mantis ID: 11392
- OS: OS X
- OS Build: 10.4.11
- Build: 20080528 Laz snapshot, FPC 2.2.1
- Platform: PowerPC
- Version: 2.2.1
- Fixed in version: 2.2.4
- Fixed in revision: 12147 (#4b766510)
- Target version: 2.2.4