LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

Mathf.Exp

public static float Exp(float power);

Description

Returns e raised to the specified power.

using UnityEngine;

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