If I have an integer set to 30
and he increased to 5000
How can I know How many times the value “30” was multiplied?
If I have an integer set to 30
and he increased to 5000
How can I know How many times the value “30” was multiplied?
var number = 30;
var result = 5000;
var t = result / (number * 2);
Debug.Log(t.ToString("0.00"));
30 * 2^n = 5000
2^n = 5000 / 30
n = Mathf.Log(5000 / 30, 2)
n = 7.38