Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: PowerPC Numerics / Part 2 - The PowerPC Numerics C Implementation
Chapter 10 - Transcendental Functions


Sign Manipulation Functions

MathLib provides two functions that manipulate the sign bit of the floating-point value:
copysign(x,y) Copies the sign of y to x.
fabs(x) Returns the absolute value (positive form) of x.

Because these functions only manipulate the sign bit of the value and do not try to compute the value at all, they raise no floating-point exceptions.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996