Skip to content

format

typescript
Mathf.Exp(val)

class: Mathf

description

Returns the specified power of e.

parameter

param_nametypedescription
valnumberThe power.

return

typedescription
numberThe value of e raised to the power of x.

code example

typescript
// Calculate the power of e
let exp = Mathf.Exp(0) //exp=1