Compiler error on Currency multiplication and division
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
"C := C * R / D;" (all Currency types) fails to compile with "Error: Incompatible type for arg no. 1: Got "Currency", expected "Int64"" message
Steps to reproduce:
program CurrencyTest;
{$mode objfpc}{$H+}
var
C: Currency;
R, D: Currency;
begin
C := 1234.56;
R := 4;
D := 2;
C := C * R / D;
Writeln(C);
end.
Mantis conversion info:
- Mantis ID: 38717
- OS: Raspberry Pi
- Platform: arm-linux
- Version: 3.3.1