a quick lesson learnt:
var num : float = 20 / 44; //result: 0
var num : float = parseFloat(20) / parseFloat(44); //result: 0.4545455
and just to be complete:
var num : float = 20.0 / 44.0; //result: 0.4545455
var num : float = 20 / 44; //result: 0
One Comment
Great help, thanks!