Originally Posted by Clamsoda
Use the float parameter of format.
Lua Code:
local truncatedDecimal = format("%.2f", 3.14159265359)
|
so in turn my code should look something like this correct?
Lua Code:
local resolHeight = GetScreenHeight()
local resolWidth = GetScreenWidth()
local aspectRatio = (resolWidth/resolHeight)
print ("if this function works your Aspect ratio is", format("%.2f", aspectRatio))