Returns the natural logarithm of a number. Natural logarithms are based on the constant e (2.71828182845904).
Log(number)
Positive real number for which you want the natural logarithm.
<!--- This example shows how to use Log --->
<HTML>
<HEAD>
<TITLE>
Log Example
</TITLE>
</HEAD>
<BODY bgcolor=silver>
<H3>Log Example</H3>
<CFIF IsDefined("FORM.number")>
<CFOUTPUT>
<P>Your number, #FORM.number#
<BR>#FORM.number# raised to the E power: #exp(FORM.number)#
<CFIF FORM.number LTE 0><BR>You must enter a positive real number to
see the natural logarithm of that number<CFELSE><BR>The natural logarithm
of #FORM.number#: #log(FORM.number)#</CFIF>
<CFIF FORM.number LTE 0><BR>You must enter a positive real number to
see the logarithm of that number to base 10<CFELSE><BR>The logarithm of
#FORM.number# to base 10: #log10(FORM.number)#</CFIF>
</CFOUTPUT>
</CFIF>
<FORM ACTION="log.cfm" METHOD="POST">
Enter a number to see its value raised to the E power,
the natural logarithm of that number, and the logarithm of
number to base 10.
<INPUT TYPE="hidden" NAME="number_Required">
<INPUT TYPE="hidden" NAME="number_Float" Value="You must enter a
number.">
<INPUT TYPE="Text" NAME="number">
<INPUT TYPE="Submit" NAME="">
</FORM>
</BODY>
</HTML>