Module:NumberFormatter: Revision history

From Idle Clans wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

24 May 2024

  • curprev 11:0511:05, 24 May 2024Uraxys talk contribs 863 bytes −167 No edit summary
  • curprev 11:0411:04, 24 May 2024Uraxys talk contribs 1,030 bytes +436 No edit summary
  • curprev 10:0010:00, 24 May 2024Uraxys talk contribs 594 bytes +594 Created page with "local p = {} ---Formats a number by adding thousand separators. ---Example: 20000 -> 20,000 function p.formatNumber(frame) local num = tonumber(frame.args[1]) -- Make sure we're working with a number. if not num then return "Error: '" .. frame.args[1] .. "' is not a number." end -- Format the number. local formatted = tostring(num) while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if k..."