I am trying to write code that performs a calculation before displaying the value in a gui label as follows
public int number = six;
public int big; //value changes but is calculated in other method, assume it has a value
int Calculate(int a)
{
int total= a/big*100;
return total;
}
GUI.Label(new Rect(0,0,0,0), System.Convert.ToString(Calculate(number))+"%");
so far it will only display the value 0% no matter what the value big changes to. is number being correctly passed as a parameter into Calulate?