Modulo:Infobox nave: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m Protetto "Modulo:Infobox nave": Template o modulo usato in maniera estensiva ([Modifica=Consentito solo agli amministratori] (infinito) [Spostamento=Consentito solo agli amministratori] (infinito)) |
arrotondamento eccessivo |
||
Riga 27:
---============================================================
-- arrotonda in base all'ordine di grandezza: 11111->11110, 1111->1111, 111->111,1
---============================================================
local function round_auto(num)
local base = - math.floor(math.log10(math.abs(num))) +
if base < -3 then base = -3 end
return round(num, base)
Riga 145:
if range_type then dump(out, range_type, ":") end
if nmi_formatted then
dump(out, nmi_formatted, "
if kn_formatted then
dump(out, " a ", kn_formatted, " [[nodo (unità di misura)|nodi]]")
|