02-15-2005, 05:59 PM
In FB 0.11b, The SGN function returns 1 when applied to a negative double precision number (should be -1)
The single precision version does not have this bug.
Code:
dim X as double
X = -1.23#
print "X = "; X, "SGN(X) = "; SGN(X)
The single precision version does not have this bug.
ean Debord
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip