Hi ,
what data type is result of multiplication of: (Currency * Double) on
Win64 (and on Win32)?
c:=1115;
d:=1;
writeln(Round(c*d)); // gives -72967440737
32 bit version gives always 1115 as a result (and
floating point math should always have extended
On Fri, 22 Oct 2021 08:42:57 +0200, LacaK via fpc-devel
wrote:
> Hi ,
> what data type is result of multiplication of: (Currency * Double) on
> Win64 (and on Win32)?
> c:=1115;
> d:=1;
> writeln(Round(c*d)); // gives -72967440737
32 bit version gives always
Hi ,
what data type is result of multiplication of: (Currency * Double) on
Win64 (and on Win32)?
c:=1115;
d:=1;
writeln(Round(c*d)); // gives -72967440737
I suppose that Currency*Double is Currency (on Win64) and result
overflows MaxCurrency ...?
(but then how FPC determines