I am working on Delphi application in Delphi 10.1. I have compiled successfully for 32 bit, now I am compiling for 64 bit.
In some function, NaN
is assigned to its Result
variable.
In 64 bit, -1.#IND
is assigned instead of NaN
.
An error occurs, later, when comparing it like 1 < Result
abc = Nan; //so abc = -1.#IND
if 1 < abc then // invalid floating point error here for 64bit
begin
end
an exception
Invalid floating point operation
is raised.