Mathf.Pow Manual     Reference     Scripting  
Scripting > Runtime Classes > Mathf
Mathf.Pow

static function Pow (f : float, p : float) : float

Description

Returns f raised to power p.

JavaScripts
print(Mathf.Pow(6, 1.8));

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
print(Mathf.Pow(6, 1.8F));
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
print(Mathf.Pow(6, 1.8F))