Something went wrong with system functions Int and Frac in Delphi 12, Win32 platform.
At runtime, the result of the expression Frac(1.9) can be either 0.9 (as expected) or 0 or 0.89. I couldn't determine what affects this.
Interestingly, in the Evaluate/Modify window, the expressions Frac(1.9) and Int(1.9) always return -NAN, whatever that means.
Has anyone encountered these issues?
As a temporary workaround, I used x-Trunc(x) instead of Frac(x).