Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function round(num, numDecimalPlaces)
- return tonumber(string.format("%." .. (numDecimalPlaces or 0) .. "f", num))
- end
- local c,ic = ...
- c = tonumber(c)
- ic = tonumber(ic)
- print(tostring(round((c/(c+ic))*100)).."%")
Advertisement
Add Comment
Please, Sign In to add comment