Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

logb(3m) [hpux man page]

logb(3M)																  logb(3M)

NAME
logb(), logbf(), logbl(), logbw(), logbq() - radix-independent exponent functions SYNOPSIS
HP Integrity Server Only DESCRIPTION
The function computes the exponent of the floating point value x. Formally, the return value is the integral part of log base r of |x| as a signed floating point value, for nonzero x, where r is the radix of the machine's floating-point arithmetic. The radix r is 2 on HP-UX systems. If x is denormal, it is treated as though it were normalized, before the exponent is determined. Integrity Server Only is a version of it takes a argument and returns a result. is a version of it takes a argument and returns a result. is an version of it takes an argument and returns an result. is equivalent to on HP-UX systems. USAGE
To use these functions, compile either with the default option or with the and options. To use (for Integrity servers) or compile also with Make sure your program includes Link in the math library by specifying on the compiler or linker command line. For more information, see the at the following site: RETURN VALUE
Upon successful completion, returns the exponent of x. If x is NaN, returns NaN. If x returns +INFINITY. If x is zero, returns (equal to -INFINITY) and raises the divide-by-zero floating-point exception. ERRORS
If x is zero, sets to [EDOM]. Integrity Server Only HP-UX functions on Integrity servers do not set by default. For setting, compile with the option. SEE ALSO
frexp(3M), ilogb(3M), scalb(3M), scalbn(3M), scalbln(3M), math(5). STANDARDS CONFORMANCE
: SVID3, XPG4.2, ANSI C, ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'') : ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'') logb(3M)

Check Out this Related Man Page

scalb(3M)																 scalb(3M)

NAME
scalb(), scalbf(), scalbl(), scalbw(), scalbq() - scale exponent of a radix-independent floating-point number SYNOPSIS
HP Integrity Server Only DESCRIPTION
The function returns where r is the radix of the machine's floating-point arithmetic. The radix r is 2 on all PA-RISC and Integrity servers. Integrity Server Only is a version of it takes arguments and returns a result. is a version of it takes arguments and returns a result. is an version of it takes arguments and returns an result. is equivalent to on HP-UX systems. USAGE
To use these functions, compile either with the default option or with the and options. To use (for Integrity servers) or compile also with the option. Make sure your program includes Link in the math library by specifying on the compiler or linker command line. RETURN VALUE
and are equivalent. If y returns x. If x is +0 and y is +INFINITY, returns a NaN and raises the invalid exception. If x is +0 and y is an integer less than +INFINITY, returns +0. If x is +INFINITY and y is an integer greater than -INFINITY, returns +INFINITY. If x is finite and positive-signed and y is -INFINITY, returns +0. If x is positive and y is +INFINITY, returns +INFINITY. If x is +INFINITY and y is -INFINITY, returns a NaN. If x or y is NaN, returns a NaN. returns a properly signed infinity in lieu of a value whose magnitude is too large, and raises the overflow and inexact exceptions. raises the underflow and inexact exceptions whenever a result is tiny (essentially denormal or zero) and thereby suffers loss of accuracy, and may raise those exceptions if the result is merely tiny. ERRORS
If the correct value would overflow or underflow, sets to [ERANGE]. Integrity Server Only HP-UX functions on Integrity servers do not set by default. For setting, compile with the option. SEE ALSO
scalbn(3M), scalbln(3M), ilogb(3M), ldexp(3M), logb(3M), math(5). STANDARDS CONFORMANCE
: ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'') scalb(3M)
Man Page