(Unity Power) Mathf.Pow() is so easy to use

 void Start()
    {
        int result = (int)Mathf.Pow(2, 24);
        Debug.Log(result);
    }

Ic0CDc4LG7

Yes I casted to int, fight me if you want. :sunglasses: Obviously if I was going to use floats in this equation I would just use the float data type.

1 Like

Privacy & Terms