local x = 3140 --3'140local s = string.format('x value is %f', x) --I need to get: "x value is 3.140"
How can I insert variable with fixed point in string using string.format()?
local x = 3140 --3'140local s = string.format('x value is %01d.%03d', x/1000,x%1000)
but I think this will work
local s = string.format('x value is %01d.%03d', x/1000,math.abs(x%1000))
This code almost fine, but has a mistake:
Started by mattkime LUA Scripting
Started by dsvilko « 1 2 » LUA Scripting
Started by paulgfx Feature Requests
Started by pizzicat General Chat
Started by Mlapse LUA Scripting