Cambios

21 bytes añadidos ,  07:13 27 feb 2023
sin resumen de edición
Línea 22: Línea 22:  
--replace space with dot
 
--replace space with dot
 
--Problem: ES doesn't add a space for 4 digits
 
--Problem: ES doesn't add a space for 4 digits
local temp = {mw.ustring.gsub(tostring(formattedresult), "%s" , "")}  
+
local temp = {mw.ustring.gsub(tostring(formattedresult), "%s" , ".")}  
local temp2 = string.sub(tostring(temp[1]), -3)
+
--local temp2 = string.sub(tostring(temp[1]), -3)
return string.sub(tostring(formattedresult), 1, #formattedresult-3) .. "." .. temp2
+
--return string.sub(tostring(formattedresult), 1, #formattedresult-3) .. "." .. temp2
 +
return temp[1]
 
end
 
end
  
106 465

ediciones