Difference between revisions of "Log - Math"

From the CreationKit Wiki
Jump to navigation Jump to search
m
m (Undo revision 23249 by Ingvion (talk))
Tag: Undo
Line 16: Line 16:


== Examples ==
== Examples ==
<nowiki>float lnNum = Math.Log(5,89) ; lnNum ≈ 1,773256</nowiki>
<source lang="papyrus">
float lnNum = Math.Log(5,89) ; lnNum ≈ 1,773256
</source>


== Notes ==
== Notes ==

Revision as of 15:12, 13 July 2023

SKSE Member of: Math Script

Returns natural logarithm of passed argument as float value.

Syntax

float Function Log(float arg1) global native

Parameters

  • arg1: The float value to calculate natural logarithm from.

Return Value

The natural logarithm of arg1.

Examples

float lnNum = Math.Log(5,89) ; lnNum ≈ 1,773256

Notes

See Also