Background for Skyrim SE
Member of the Math script
floatfunctionLog(floatarg1)NativeGlobal

Description

Wiki Description

Returns natural logarithm of passed argument as float value.


Caveats

CK Wiki - Notes


Parameters

floatarg1

CK Wiki Description

The float value to calculate natural logarithm from.


Examples

float lnNum = Math.Log(5.89) ; lnNum ≈ 1.773256
;/ there's no function that returns a simple logarithm, but you can easily calculate it
   by multiplying this function's return value by 0.434294 (logarithm of Euler's number) /;

float logNum = (Math.Log(5.89)) * 0.434294 ; logNum ≈ 0.770114 (keep in mind, the result is not 100% accurate)

Auto-Generated Example

float myFloat__arg1

float returnedValue = Math.Log(myFloat__arg1)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.