4.5 Testing the Sign of Numbers
— Macro: GSL_SIGN
This macro returns the sign of x. It is defined as
((x) >= 0
? 1 : -1). Note that with this definition the sign of zero is positive
(regardless of its ieee sign bit).
The GNU Scientific Library - a free numerical library licensed under the GNU GPL
Back to the GNU Scientific Library Homepage