local p = function p.main(frame) local theString = mw.text.unstrip(frame.args[1]) local onlyNumber onlyNumber = (string.match(theString, "%-?[%d%.]+")) checkedNumber = tonumber(onlyNumber) if checkedNumber
function p.halve(frame) local checkedNumber = (p.main(frame)) local halvedNumber halvedNumber = (checkedNumber / 2) return halvedNumberendfunction p.mainnull(frame) local theString = mw.text.unstrip(frame.args[1]) local onlyNumber onlyNumber = (string.match(theString, "%-?[%d%.]+")) checkedNumber = tonumber(onlyNumber) if checkedNumber