Hi there. I use this code to calculate a relative resolution factor:
var ResFactor : float;
ResFactor = (1680 / Screen.width);
print(ResFactor);
print(Screen.width);
print((1680 / Screen.width));
What I get in the console is:

Oddly my mathematic knowledge and calculator fail calculating this as correct as unity does.
Any suggestions?
Your ResFactor variable is a floating point number. It can contain decimals.
Screen.width is an integer. It cannot contain decimals.
Integer math will always result in an integer, no matter the container you wish to put it into. Therefore, 1680 / Screen.width or integer / integer will always result in an integer value.
To correct this, your math needs to include at least one floating point number, so that the formula will implicitly convert any integers to match as necessary:
// JS
ResFactor = (1680.0 / Screen.width);