Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Luba

macrumors 68000
Original poster
Apr 22, 2009
1,820
389
I'v read that the 17" has 133 ppi, and the 15" high res has 128 ppi, but how is that figured out? I'd like to do the math for the 24" Apple Cinema Display. Thanks. :)
 
Diagonal number of pixels: use Pythagoras:

Code:
sqrt((width^2)+(height^2))/diagonal length

The ACD 24": (1920^2 + 1200^2)/24 = 94.3 dpi
 
Number of Pixels/Number of Inches

Pretty straight forward maths.

Well... Not this way. The number of inches is a measure of the diagonal length of the screen, and not (if this formular would be correct) an area of the screen.
 
Also, just using the number of inches as specified by Apple is a bit inaccurate.

Measure the width of the screen in inches = w
Count the horizontal number of pixels = p

ppi = p/w
 
Diagonal number of pixels: use Pythagoras:

Code:
sqrt((width^2)+(height^2))/diagonal length

The ACD 24": (1920^2 + 1200^2)/24 = 94.3 dpi

JavaScript:
Code:
var width = 1920;
var height = 1080;
var diagonal_inches = 24;
// result:
Math.sqrt((Math.pow(width,2)+Math.pow(height,2)))/diagonal_inches
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.