So I'm making a little app for myself and everything has been fine until now, I have no idea what I could have done but my answers are all coming out as whole numbers when I need decimal answers.
the code:
public float NumberCalc(){
float number1 = 255/100;
float number2 = ((5/366)*100);
float finalNumber =(number1*number2);
return finalNumber;
}
So I get 2.0 for number1 & 0.0 for number2 and I'm stumped
Can anyone shed some light on this scenario?