Module:Math: Difference between revisions

replace frame:preprocess with frame:callParserFunction per protected edit request by User:Jackmcbarn
en>Mr. Stradivarius
(Undid revision 586591521 by Mr. Stradivarius (talk) reinstate the new version - the problem was limited to two modules, which I will now fix)
en>Mr. Stradivarius
(replace frame:preprocess with frame:callParserFunction per protected edit request by User:Jackmcbarn)
Line 492:
if number == nil then
local frame = mw.getCurrentFrame()
local attempt = frame:preprocesscallParserFunction('{{#expr: ' .., number_string .. '}}')
attempt = tonumber(attempt)
if attempt ~= nil then
Anonymous user