Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ copysign(3M) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

attributes(5)

copysign(3M)

NAME

copysign − return magnitude of first argument and sign of second argument

SYNOPSIS

cc [ flag ... ] file ... −lm [ library ... ]

#include <math.h>

double copysign(double x, double y);

DESCRIPTION

The copysign() function returns a value with the magnitude of x and the sign of y. It produces a NaN with the sign of y if x is a NaN. 

RETURN VALUES

The copysign() function returns a value with the magnitude of x and the sign of y.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level MT-Safe

SEE ALSO

attributes(5)

SunOS 5.6  —  Last change: 29 Dec 1996

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026