Screen display ratios

77 Views Asked by At

So I was creating a script to determine the aspect ratio of screens based on resolution. Am I right in saying that 1366 pixels x 768 pixels is not in fact a true 16:9 ratio?

In this case I am stuck as to how to calculate the common ratio of computer displays.

I hope you can help and this is the correct place to ask - go easy on me, its my first time here! You can normally find me on stackoverflow :)

4

There are 4 best solutions below

1
On BEST ANSWER

As $\frac{1366}{768} \approx 1.7786$, while $\frac{16}{9} = 1.777\dots$, your statement is correct. However, you can also see the discrepancy is rather small, and so $16:9$ gives a rather good impression of the ratio, which is why it is noted there in the first place. An exact $16 : 9$ ratio which would be close to yours could be $1360$ by $765$. (Again, it's pretty close to $1366$ by $786$.)

0
On

$$\frac{1366}{768}=1.7786458\overline3$$ while $$\frac{16}9=1.\overline7.$$

there is a small discrepancy.

0
On

If you assume that the pixels are square, then it is true that a screen of 1366 pixels by 768 pixels is not exactly a 16:9 ratio. It's possible that when describing the aspect ratio of displays, the computer manufacturers round to a simple ratio. It's also possible that pixels are not square!

P.S. Could you describe what the "aspect ratio" and "resolution" of screens are precisely for those not fluent in such computer terms?

P.P.S. I'm not sure this question belongs on this site... is stackoverflow not suited for it either?

0
On

Let's see:

$$\frac{1366}{768}-\frac{16}{9}$$ $$=\frac{2\cdot 683}{2^8\cdot 3}-\frac{2^4}{3^2}$$ $$=\frac{683}{2^7\cdot 3}\cdot \frac33 - \frac{2^4}{3^2}\cdot\frac{2^7}{2^7}$$ $$=\frac{2049 - 2048}{2^7\cdot3^2}$$ $$=\frac1{1152}$$

So: no, but they only differ by $\frac1{1152}$.