Log - Math

From Creation Kit
Jump to: navigation, search

F4SE Member of: Math Script
Requires F4SE version 0.2.0 or higher.

Returns the logarithm of a specified number.

Syntax

float Function Log(float arg1) Global Native

Parameters

  • arg1: The number to return a logarithm for.

Return Value

The logarithm of a specified number.

Examples

int a = Math.Log(1)       ; a == 0
int b = Math.Log(1000)    ; b == 3
int c = Math.Log(1000000) ; c == 6

See Also