Returning a calculation into a GUI.Label

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?

Well, looking at the code, and based on the fact that you are displaying a zero, and not NaN, I would think that number is set to zero. What is “six” set to? The convert call looks fine, and the only way you should get 0 displayed there is if “number” is set to 0.

just realised public int number =six should be 6 not six.

number is not set to 0, when the i look at both numbers in the editor when the game is running they both have a value attached so not sure what is happening here!