View source for Module:Number
From Melvor Idle
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
--
-- Module that contains functions related to numeric formatting or number manipulation
--
local p = {}
local numberSuffixes = {
k = 1e3,
m = 1e6,
b = 1e9,
t = 1e12,
q = 1e15,
s = 1e18,
o = 1e21,
n = 1e24,
d = 1e30
}
local function sigfig(x, y)
local x_sign = x < 0 and -1 or 1
000
1:0
Template used on this page:
Return to Module:Number.