function trunc not work correct
Original Reporter info from Mantis: alexs75
-
Reporter name: Lagunov Aleksey
Original Reporter info from Mantis: alexs75
- Reporter name: Lagunov Aleksey
Description:
code:
var
a:comp;
begin
a:=123.123;
writeln('a=',a:10:3, ' trunc(a)=', trunc(a));
a:=123.523;
writeln('a=',a:10:3, ' trunc(a)=', trunc(a));
end.
output:
./aa
a= 123.000 trunc(a)=123
a= 124.000 trunc(a)=124
Mantis conversion info:
- Mantis ID: 38631
- Build: rev 48990
- Version: 3.3.1
- Fixed in revision: 49247 (#dbee3bcc)
- Monitored by: » alexs75 (Lagunov Aleksey)