Multiply x Currency x Win64
Original Reporter info from Mantis: eduardo.cwb@gmail.com
-
Reporter name: Eduardo Vieira
Original Reporter info from Mantis: eduardo.cwb@gmail.com
- Reporter name: Eduardo Vieira
Description:
When I use "FPC -Px86_64 -Twin64 MyProgram" the multiplication does not work using "currency type" with large numbers
By example:
// file cur.pas
Program Cur ;
Var Cur : Currency ;
Begin
Cur:=100000000000 ;
Cur:=Cur * 7 ;
Writeln(Cur:0:4);
End.
// The operaction returns "-37869762948.3820" instead of 700000000000
Steps to reproduce:
FPC -Px86_64 -Twin64 Cur
Cur [enter]
Mantis conversion info:
- Mantis ID: 33439
- Build: 2017/10/06
- Version: 3.0.4
- Fixed in version: 3.1.1
- Fixed in revision: 38555 (#b2825f24)