Module:Number
Documentation for this module may be created at Module:Number/doc
local p = {}
function p.to_hex( frame )
local num = tonumber(frame.args.num);
if(num == nil) then return error("Provided argument (" .. frame.args.num .. "), cannot be converted to hexadecimal") end
return num;
end
return p