Description

Calculates the logarithm of number, to base 10.

Returns

Number; the logarithm of number, to base 10.

Category

Mathematical functions

Function syntax

Log10(number)

See also

Log

Parameters

Parameter

Description

number

Positive real number for which to calculate the logarithm

Example

<cfscript>
    val=5
    writeOutput("The log base 10 of " & val & " is: " & log10(val))
</cfscript>

Output

The log base 10 of 5 is: 0.698970004336

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy