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 Functionsilogb(3M)


NAME

 ilogb - returns an unbiased exponent

SYNOPSIS

 
cc [ flag ... ] file ... -lm [ library ... ]
#include <math.h>
int ilogb(double x);

DESCRIPTION

 

The ilogb() function returns the exponent part of x. Formally, the return value is the integral part of logr|x| as a signed integral value, for non-zero finite x, where r is the radix of the machine's floating point arithmetic.

RETURN VALUES

 

Upon successful completion, ilogb() returns the exponent part of x.

If x is 0, ilogb() returns -INT_MAX.

If x is NaN or +-Inf, ilogb() returns INT_MAX.

ATTRIBUTES

 

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

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

SEE ALSO

 

logb(3M), 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.