I’ve thrown myself into iPhone development and I’m trying to simply debug a number however now even passing a number with a decimal place debugs as a whole number.
var percentage : float = 1.71;
Debug.Log(percentage);
gives my 1
var percentage : float = 1.0;
Debug.Log(percentage);
percentage = 1 / 4;
gives me 0
I’ve not done much Unity before so I could be doing something stupid, however I’ve got years of actionscript as2 and as3 and just can’t figure this one out.
cheers
g