|
Reported by M.H. Avegaart; checked by Jordan Russell
The Delphi compiler returns 'Incompatible types' if you pass an Int64 to a built-in function (from the System unit) requiring a floating-point parameter (e.g. Sin, Cos, ArcTan, Exp, Ln, Trunc, Frac, Int, Round). Other functions requiring a floating-point parameter (like from the Math unit) don't show this behavior.
Example:
var
X: Int64;
Y: Extended;
begin
X := 1;
Y := Ln(X);
end;
The compiler should do an internal conversion to Double or Extended like it does for all other integer types. |