Changes

Jump to navigation Jump to search

Module:Math

22 bytes added, 07:57, 21 February 2013
no edit summary
local decimal = string.find( x, '.', 1, true )
local exponent exponent_pos = string.find( x, 'E', 1, true )
local result = 0;
if exponent exponent_pos ~= nil then local exponent = string.sub( x, exponent exponent_pos + 1 ) x = string.sub( x, 1, exponent exponent_pos - 1 )
result = result - tonumber( exponent )
end
Anonymous user

Navigation menu