Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Exp(float)

Returns e raised to the specified power.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static float Exp(float power)

Parameters

power

Returns

Type

Description

float

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Start() { print(Mathf.Exp(6)); }}