Module:Mmgsection: Revision history

Jump to navigation Jump to search
Diff selection: mark the radio boxes of the versions to compare or click on a revision date to view it. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit

15 October 2024

  • curprev 15:3515:35, 15 October 2024Alex talk contribs 3,833 bytes +3,833 Created page with "require('strict') local p = {} local round = require('Module:Number')._round local _coins = require('Module:Currency')._amount -- funcs from Module:Mmgtable local function sigfig(x, p) local x_sign = x < 0 and '-1' or '1' local x = math.abs(x) if x == 0 then return 0 end local n = math.floor(math.log10(x)) + 1 - p return tonumber(x_sign) * math.pow(10,n) * round(x/math.pow(10, n), 0) end local function autoround(x, f) x = tonumber(x) or 0 local _x if x..."