logbf man page on Cygwin

Man page or keyword search:  
man Server   22533 pages
apropos Keyword Search (all sections)
Output format
Cygwin logo
[printable version]

LOGB(3)				    NEWLIB			       LOGB(3)

NAME
       1.37 `logb', `logbf'-get exponent of floating-point number

SYNOPSIS
	    #include <math.h>
	    double logb(double X);
	    float logbf(float X);

DESCRIPTION
       The  `logb'  functions  extract	the exponent of X, as a signed integer
       value in floating-point format.	If X is subnormal  it  is  treated  as
       though  it  were	 normalized;  thus,  for  positive finite X, 1 <= (X *
       FLT_RADIX to the power (-logb(X))) < FLT_RADIX.	 A  domain  error  may
       occur  if the argument is zero.	In this floating-point implementation,
       FLT_RADIX is 2.	Which also  means  that	 for  finite  X,  `logb'(X)  =
       `floor'(`log2'(`fabs'(X))).

	  All  nonzero, normal numbers can be described as M * 2**P, where 1.0
       <= M < 2.0.  The `logb' functions examine the argument X, and return P.
       The  `frexp' functions are similar to the `logb' functions, but return‐
       ing M adjusted to the interval [.5, 1) or 0, and P+1.

RETURNS
       When X is: +inf or -inf, +inf is returned; NaN,	NaN  is	 returned;  0,
       -inf  is	 returned,  and the divide-by-zero exception is raised; other‐
       wise, the `logb' functions return the signed exponent of X.

PORTABILITY
       ANSI C, POSIX

       *See Also*
       frexp, ilogb

SEE ALSO
       logb is part of the library.  The full documentation for is  maintained
       as  a Texinfo manual.  If info and are properly installed at your site,
       the command

	      info

       will give you access to the complete manual.

NEWLIB				  April 2010			       LOGB(3)
[top]

List of man pages available for Cygwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net