|
Post by paladiex on Jan 2, 2017 15:37:14 GMT
I am trying to do some math to find user's resolutions. I want to do something like
if math.floor((getX()/16)*9) = getY() then ratio = "16:9"
elseif math.floor((getX()/16)*10) = getY() then ratio = "16:10"
elseif math.floor((getX()/4)*3) = getY() then ratio = "4:3" end
Any idea how I can get this to work?
|
|
|
Post by AnkuLua on Jan 2, 2017 15:42:40 GMT
|
|
|
Post by paladiex on Jan 2, 2017 16:48:11 GMT
|
|
|
Post by vampiredbr9 on Jan 16, 2017 19:34:22 GMT
Mind if I steal this section of code, palidex?
|
|