Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.
double c = signbit(-3.5);
double d = signbit(0.0);
||The signbit() function returns a nonzero value if the value of x has its sign bit set. This is not the same as x < 0.0, because IEEE 754 floating point allows zero to be signed. The comparison -0.0 < 0.0 is false, but signbit (-0.0) will return a nonzero value.
Updated on July 07, 2011 11:08:58pm PDT