Hello,
As far as I know, there isn’t an operator that handles exponents. Now, if I were working with integers, I would use a for-loop. However, I need to power a float by a float.
Is there a known method of for handling this?
Thanks!
Hello,
As far as I know, there isn’t an operator that handles exponents. Now, if I were working with integers, I would use a for-loop. However, I need to power a float by a float.
Is there a known method of for handling this?
Thanks!
using UnityEngine;
using System.Collections;
public class Example : MonoBehaviour {
void Example() {
print(Mathf.Pow(6, 1.8F));
}
}