Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Mathf.Exp

static function Exp(power: float): float;
static float Exp(float power);
static def Exp(power as float) as float

Description

Returns e raised to the specified power.

	print(Mathf.Exp(6));
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Example() {
        print(Mathf.Exp(6));
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Example() as void:
		print(Mathf.Exp(6))