REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: log-10

log-10  value

Returns the base-10 logarithm.

Arguments:

value [number!]

See also:

exp   log-2   log-e   power  

Description

The LOG-10 function returns the base-10 logarithm of the number provided. The argument must be a positive value, otherwise an error will occur (which can be trapped with the TRY function).

print log-10 100
2.0
print log-10 1000
3.0
print log-10 1234
3.091315159697223


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin