Module:Math: Difference between revisions
no edit summary
m>Dragons flight (unnecessary) |
m>Dragons flight No edit summary |
||
Line 31: | Line 31: | ||
if exponent ~= nil then | if exponent ~= nil then | ||
exponent = string.sub( x, exponent + 1 ) | exponent = string.sub( x, exponent + 1 ) | ||
x = string.sub( x, | x = string.sub( x, 1, exponent - 1 ) | ||
result = result - tonumber( exponent ) | result = result - tonumber( exponent ) | ||
end | end |