Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ scalbn(3M) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

attributes(5)

scalbn(3M)

NAME

scalbn − load exponent of a radix-independent floating-point number

SYNOPSIS

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

#include <math.h>

double scalbn(double x, int n);

DESCRIPTION

The scalbn() function computes x ∗ rn, where r is the radix of the machine’s floating point arithmetic. 

RETURN VALUES

Upon successful completion, the scalbn() function returns x ∗ rn. 

If the correct value would overflow, scalbn() returns ±HUGE_VAL (according to the sign of x). 

The scalbn() function returns x when x is ±Inf. 

If x is NaN, then scalbn() returns NaN. 

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