Difference between revisions of "Log"

From Xojo Documentation

m
m
 
Line 38: Line 38:
  
 
<rbcode>
 
<rbcode>
Dim d As Double
+
Var d As Double
 
d = Log(10) // returns 2.3025851
 
d = Log(10) // returns 2.3025851
 
</rbcode>
 
</rbcode>

Latest revision as of 20:39, 21 November 2019

Method

Log(value as Double) As Double

Supported for all project types and targets.

Returns the natural logarithm of the value specified. Use System.Log to use the system message logging.

Syntax

result=Log (value)

Part Type Description
result Double The natural logarithm of value.
value Double The value you want the natural logarithm of.

Examples

This example uses the Log function to return the natural logarithm of a number.

Var d As Double
d = Log(10) // returns 2.3025851

See Also

Exp function.