I have a formula in an excel doc that I need to change into code, was imagining that I was doing right, but the result is different:
Excel code:
=((ROUNDUP(chain/5,0)-1)*5+10)*5
(chain is the variable number)
So far I have this code in unity:
var scoreMath : float;
var score : int;
scoreMath = ( ( ( chain/5 ) -1 ) *5+10 ) *5;
score += Mathf.FloorToInt(scoreMath);
They don’t seem to output the same number though