Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Mathematical Library Functionsscalbn(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 TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

SEE ALSO

 

attributes(5)


SunOS 5.9Go To TopLast Changed 29 Dec 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.