Anonymous

Module:Number: Difference between revisions

From Melvor Idle
m
Fix again...
m (Rename parameter p that conflicts with parent)
m (Fix again...)
Line 21: Line 21:
local x = math.abs(x)
local x = math.abs(x)
local n = math.floor(math.log10(x)) + 1 - y
local n = math.floor(math.log10(x)) + 1 - y
return x_sign * math.pow(10, n) * y.round2(x / math.pow(10, n), 0)
return x_sign * math.pow(10, n) * p.round2(x / math.pow(10, n), 0)
end
end


2,875

edits