xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

Log10()

Calculates the base 10 logarithm.

Syntax

Log10( <nValue> ) --> nLog10

Arguments

<nValue>
Any positive numeric value greater than zero can be passed.

Return

The function returns the logarithm base 10 as a numeric value.

Info

See also:Exp(), Log()
Category: CT:Math , Mathematical functions
Source:ct\ctmath2.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The exapmple displays results of function Log10().

   PROCEDURE Main

      ? Log10( 1 )            // result: 0
      ? Log10( 10 )           // result: 1
      ? Log10( 1000 )         // result: 3
      ? Log10( Infinity() )   // result: 19.97

   RETURN

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe