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.Pow

public static float Pow(float f, float p);

Description

Returns f raised to power p.

using UnityEngine;

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