Math.Log Method

Returns the natural logarithm (base-e logarithm) of a specified value.

...Math.Log(value )

Prerequisites

None

Parameters

value

A required expression that evaluates to any numerical data type, e.g. Integer, Single, Double.

Remarks

Returns the exponent to which the natural logarithmic constant, Math.E, must be raised in order to produce the value.

Examples

Dim ln_exp As Single
ln_exp = Math.Log(10) ' Sets ln_exp to 2.3026
ln_exp = Math.Log(Math.E) ' Sets ln_exp to 1
ln_exp = Math.Log(Math.Exp(3.4)) ' Sets ln_exp to 3.4

See Also

Math Class