oating point support of
IEEE 754 has been beefed up.
--
Pete Forman-./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not represent
[EMAIL PROTECTED]-./\.- the opinion of Schlumberger or
http://petef
):
if y == 0 or isnan(y):
return y
else
return copysign(1, y)
The better choice will be governed by how sign is used in practice.
--
Pete Forman-./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not
lving NaNs propagate the payload but not
the sign bit AFAIK.
--
Pete Forman-./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not represent
[EMAIL PROTECTED]-./\.- the opinion of Schlumberger or
http://petef