Cambios

11 bytes añadidos ,  03:11 12 may 2023
sin resumen de edición
Línea 32: Línea 32:  
if (temp < 10000) then
 
if (temp < 10000) then
 
length = #(tostring(temp))
 
length = #(tostring(temp))
temp2 = string.sub(tostring(temp), -3)
+
local temp2 = string.sub(tostring(temp), -3)
formattedprice = formattedprice .. string.sub(tostring(temp), 1, (length-3)) .. "." .. temp2
+
formattedprice = formattedprice .. string.sub(tostring(temp), 1, (length-3)) .. "." .. temp2
 
else
 
else
 
temp = {mw.ustring.gsub(tostring(temp), "%s" , ".")}
 
temp = {mw.ustring.gsub(tostring(temp), "%s" , ".")}
Línea 52: Línea 52:  
if (temp < 10000) then
 
if (temp < 10000) then
 
length = #(tostring(temp))
 
length = #(tostring(temp))
temp2 = string.sub(tostring(temp), -3)
+
local temp2 = string.sub(tostring(temp), -3)
 
formattedprice = formattedprice ..  string.sub(tostring(temp), 1, (length-3)) .. "." .. temp2
 
formattedprice = formattedprice ..  string.sub(tostring(temp), 1, (length-3)) .. "." .. temp2
 
else
 
else
106 436

ediciones