Scripting API: Mathf.Pow - Unity - Manual
- Manual
- Scripting API
- unity.com
- Supported
- Legacy
- English
- C#
Scripting API
Version: Unity 6 Select a different version LanguageEnglish- English
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseSubmission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close Your name Your email Suggestion* Submit suggestionCancel
Switch to ManualDeclaration
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)); } }Is something described here not working as you expect it to? It might be a Known Issue. Please check with the Issue Tracker at issuetracker.unity3d.com.
Copyright ©2005-2024 Unity Technologies. All rights reserved. Built from: 6000.0.33f1 (392e019ec472). Built on: 2024-12-12. Tutorials Community Answers Knowledge Base Forums Asset Store Terms of use Legal Privacy Policy Cookies Do Not Sell or Share My Personal Information Your Privacy Choices (Cookie Settings)