Divisions always return an int. (SOLVED!)

[Deleted]

try this:

1.0f * Screen.width / Screen.height;
1 Like

i belive Screen.width & height is an integer you could write:

Debug.log ((float)Screen.width / (float)Screen.height);
1 Like

Thank you, that worked like a charm :slight_smile:

no problem :wink: