[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


log2

The function log2 computes the base-2 logarithm.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <math.h>
double log2 ( double x );
Parameters:

Parameters for this function are:

x  
double  
The value being computed  

Return:

The base-2 logarithm of x.

Remarks:

A domain error may occur if x is less than zero. A range error may occur if x is equal to zero.

See Also:

"log"


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000