[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


copysign

The function copysign produces a value with the magnitude of x and the sign of y

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <math.h>
double copysign ( double x, double y );
Parameters:

Parameters for this function are:

x  
double  
Magnitude  
y  
double  
The sign argument  

Remarks:

The copysign function regards the sign of zero as positive. It produces a NaN with the sign of y if x is NaN.

Return:

A value with the magnitude of x and the sign of y.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000