Site hosted by Angelfire.com: Build your free website today!

nextpowof10

PURPOSE ^

NEXTPOWOF10 Next power of 10.

SYNOPSIS ^

function p = nextpowof10(x)

DESCRIPTION ^

NEXTPOWOF10 Next power of 10.

   P = NEXTPOWOF10(X) returns the smallest integer P such that 10^P >= abs(X).

   Essentially, NEXTPOWOF10(X) is the same as CEIL(LOG(ABS(X)) / LOG(10)), but
   special care is taken to catch round-off errors.

   See also PREVPOWOF2, NEXTPOW.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^


Generated on Sat 12-Mar-2005 01:01:49 by Rezaul Karim © 2004