Next: Testing for Odd and Even Numbers, Previous: Small integer powers, Up: Mathematical Functions [Index]
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).
((x) >= 0
? 1 : -1)