Scripting API: Mathf.Pow - Unity - Manual

  • Manual
  • Scripting API
  • unity.com
Version: Unity 6 (6000.0)
  • Supported
  • Legacy
LanguageEnglish
  • English
  • C#

Scripting API

Version: Unity 6 Select a different version LanguageEnglish
  • English
Mathf.Pow Leave feedback Suggest a change

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.

Close

Submission 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 suggestion

Cancel

Switch to Manual

Declaration

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)

Từ khóa » C# 2 Hoch 3