[fpc-devel] Abs(Variant) unexpected result

Bart bartjunk64 at gmail.com
Sun Feb 25 16:41:44 CET 2018


Delphi 10.2 Tokyo:

X = -1,5
VarIsFloat : TRUE
VarIsNumeric: TRUE
VarIsOrdinal: FALSE
After Abs()
X = 1,5
VarIsFloat : TRUE
VarIsNumeric: TRUE
VarIsOrdinal: FALSE

I asked to test with "X := -1" to see if Delphi always chooses the
float overload.

Bart



More information about the fpc-devel mailing list