I cant work out how to cast variables in JS.
The following doesnt work as the calculation of the height is done as an int and then gets assigned to a float (I’m guessing).
var ratio: float; ratio=Screen.width/Screen.height So Ive done these which seems a bit like hard work:var ratio: float; var w: float; var h: float; w=Screen.width; h=Screen.height; ratio=w/h; Also is there a guide somewhere on this type of stuff? All I can find is class references.