[fpc-devel] Currency * Double

LacaK lacak at zoznam.sk
Fri Oct 22 08:42:57 CEST 2021


Hi ,
what data type is result of multiplication of: (Currency * Double) on 
Win64 (and on Win32)?
   c:=1115;
   d:=100000000;
   writeln(Round(c*d)); // gives -72967440737

I suppose that Currency*Double is Currency (on Win64) and result 
overflows MaxCurrency ...?
(but then how FPC determines result data type?; On Win32 there is result 
Extended?)

TIA
-Laco.


More information about the fpc-devel mailing list