Screen Size and Pixel Density

Works out the width and height of a screen from its diagonal and its aspect ratio. A screen described as 27 inches is quoting the diagonal, which alone does not fix its size. Adding the pixel count gives the pixel density in ppi.