i'm trying to calculate the px for different screen sizes. Now i have the problem that on my screen (1080x1920) the formular width/1080*1080 = 1080 but for another screen with width = 240 the formular has the result 0. can someone explain me why this happens? Do i have to choose another type for my values? i tried double, float and int. Everytime the result for 240*1080/1080 is 0.
Thanks.