Modulo:Math/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
151 cp (discussione | contributi)
Nessun oggetto della modifica
151 cp (discussione | contributi)
Nessun oggetto della modifica
Riga 467:
 
-- PERCENTUALE CON DUE CIFRE DECIMALI MOSTRATE
function wrap.ciaoperc(args)
local x = args[1]
local y = args[2]
Riga 476:
yesno = require('Module:Yesno')
end
return p._ciao_perc(x, y, yesno(round), precision, precision_format)
end
 
function p._ciao_perc(x, y, round, precision, precision_format)
if y == nil or y == "" then
return err("Empty divisor")
Riga 503:
 
--PERCENTUALE CON PARAMETRO PER NUMERO CIFRE DECIMALI DA MOSTRARE
function wrap.salveperk(args)
local x = args[1]
local y = args[2]
Riga 512:
yesno = require('Module:Yesno')
end
return p._salve_perk(x, y, yesno(round), precision, precision_format)
end
 
function p._salve_perk(x, y, round, precision, precision_format)
if y == nil or y == "" then
return err("Empty divisor")