FANDOM


ElvenAge = {}
ElvenAge.Age_Division = function(real_age) if real_age < 18 then return real_age else
return (real_age - 18) / (8.5 * math.pow(1.0474757339,((real_age - 18) / 18))) + 18 end end
ElvenAge.Age_Multiply = function(real_age) if real_age < 18 then return real_age else
return (real_age - 18) * (8.5 * math.pow(1.0474757339,((real_age - 18) / 18))) + 18 end end
 
local p={}
function p.main(frame)
    local number = tonumber(frame.args[2])
    if frame.args[1] == "*" then
        number = ElvenAge.Age_Multiply(number)
    elseif frame.args[1] == "/" then
        number = ElvenAge.Age_Division(number)
    elseif frame.args[1] == "*-" then
        number = ElvenAge.Age_Division(number)
        number = math.ceil(number)
    elseif frame.args[1] == "/-" then
        number = ElvenAge.Age_Division(number)
        number = math.floor(number)
    end
    return number
end
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.