RTL: abs() - Incorrect behaviour for variant containing float number
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
This nice program prints 0. Delphi prints 3.00000000000000E-0001
program a;
var v:variant;
begin
v:=-0.3;
writeln(abs(v));
end.
Steps to reproduce:
Compile and run
Mantis conversion info:
- Mantis ID: 20551
- OS: Debian GNU/Linux
- OS Build: wheezy/sid
- Platform: x86_64-linux
- Version: 2.7.1
- Fixed in version: 3.1.1
- Fixed in revision: 38531 (#3e7af376)