Exp - Math

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
This article has been flagged as incomplete.
Please help improve the wiki by learning how to contribute.

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

Calculates e (Euler's number) raised to the given power of afArg1.

Syntax[edit | edit source]

float Function Exp(float afArg1) Native Global

Parameters[edit | edit source]

  • afArg1: The power to raise e to.

Return Value[edit | edit source]

  • Returns e raised to the power of afArg1.

Examples[edit | edit source]

float a = Math.Exp(0) ; a == 1
float b = Math.Exp(1) ; b == 2.718...
float c = Math.Exp(3) ; c == 20.085...

See Also[edit | edit source]