logb

log2

#include <math.h>float log2f(float num);double log2(double num); long double log2l(long double num); 

log2( ), log2f( ), and log2l( ) were added by C99.

The log2( ) family of functions returns the base 2 logarithm for num. A domain error occurs if num is negative. If num is zero, a range error is possible.

Related functions are log( ) and log10( ).




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net