Android - Why Doesn't Android Obey The Pythagorean Theorem? -


i have samsung galaxy s4 5.0 inches diagonally. confirmed both looking on internet , measuring phone ruler.

by programmatically getting phone's width , height in pixels, got width 1080px , height 1920px. phone's density 480dpi, xxhdpi.

using convertor (https://pixplicity.com/dp-px-converter/), 1920px 4.00 inches , 1080px 2.25 inches, @ xxhdpi.

using pythagorean theorem, diagonal line in inches phone should approximately 4.59 inches, not 5.00 inches.

the pythagorean theorem doesn't rationalize android's sizing of several of virtual devices well. why not adding up? doing calculations wrong?


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -