MACROMEDIA COLFUSION MX 7-CFML Reference page 745

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

Log10
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
,
Exp
Log
Parameters
Parameter
number
Example
<h3>Log10 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>
<cfform action = "log10.cfm">
Enter a number to find its value raised to the E power, its natural
logarithm, and the logarithm of number to base 10.
<cfinput type = "Text" name = "number" message = "You must enter a number"
validate = "float" required = "No">
<input type = "Submit" name = "">
</cfform>
Description
Positive real number for which to calculate the logarithm
Log10
745

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents