2,875
edits
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) * | return x_sign * math.pow(10, n) * p.round2(x / math.pow(10, n), 0) | ||
end | end | ||
edits