Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ copysign(3m) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought



COPYSIGN(3m,L)              AIX Technical Reference              COPYSIGN(3m,L)



-------------------------------------------------------------------------------
copysign



PURPOSE

Copies the sign of a double-precision floating-point number.

LIBRARY

Math Library (libm.a)

SYNTAX

#include <math.h>

double copysign (x, y)
double x, y;

DESCRIPTION

The copysign subroutine copies the sign of one double-precision floating-point
number to another.  The x parameter contains the number to be changed to the
sign of y parameter.

RETURN VALUE

The copysign subroutine returns x with the same sign as y.


























Processed November 7, 1990      COPYSIGN(3m,L)                                1



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