| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Calculates the base 10 logarithm.
Log10( <nValue> ) --> nLog10
The function returns the logarithm base 10 as a numeric value.
| See also: | Exp(), Log() |
| Category: | CT:Math , Mathematical functions |
| Source: | ct\ctmath2.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// 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
http://www.xHarbour.com