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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to