Re: [fpc-devel] Currency * Double

2021-10-25 Thread LacaK via fpc-devel
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

Re: [fpc-devel] Currency * Double

2021-10-23 Thread Virgo Pärna via fpc-devel
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

[fpc-devel] Currency * Double

2021-10-22 Thread LacaK via fpc-devel
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