Signup
Search Linux manpages For:  

copysign(3) -- Linux man page

 

NAME

copysign, copysignf, copysignl - copy sign of a number  

SYNOPSIS

#include <math.h>

double copysign(double x, double y);

float copysignf(float x, float y);
long double copysignl(long double x, long double y);
 

DESCRIPTION

The copysign() functions return a value whose absolute value matches that of x, but whose sign matches that of y. If x is a NaN, then a NaN with the sign of y is returned.  

NOTES

The copysign() functions may treat a negative zero as positive.  

CONFORMING TO

C99, BSD 4.3. This function is defined in IEC 559 (and the appendix with recommended functions in IEEE 754/IEEE 854).  

SEE ALSO

signbit(3)


 
LINUX MAN PAGES
Man1 -- User Commands (Intro)
Man2 -- System Calls (Intro)
Man3 -- Library Functions (Intro)
Man4 -- Special Files (Intro)
Man5 -- File Formats (Intro)
Man6 -- Games (Intro)
Man7 -- Miscellaneous (Intro)
Man8 -- Administration (Intro)
Mann -- TCL Functions (not available)


WEB HOSTING SHOWCASE




 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2012 Broadband Media, Inc. All rights reserved.