Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ copysign(3) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

     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 param-
     eter 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.

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