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.

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

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

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