Math
MSK.Math.Number
local number = MSK.Math.Number(length)
-- Example
local number = MSK.Math.Number(3) -- Output: 123 or 475 or 285 or ...
-- As an Export:
local number = exports.msk_core:GetRandomNumber(length)MSK.Math.Round
local num = MSK.Math.Round(number, decimal)
-- Example
local num = MSK.Math.Round(25.8385) -- Output: 26
local num = MSK.Math.Round(25.8385, 1) -- Output: 25.8
local num = MSK.Math.Round(25.8385, 2) -- Output: 25.84
-- As an Export:
local num = exports.msk_core:Round(length)MSK.Math.Comma
Last updated