Cambios

82 bytes eliminados ,  06:02 31 may 2023
sin resumen de edición
Línea 34: Línea 34:  
else
 
else
 
--Spanish
 
--Spanish
if (tonumber(fmlowprice) < 1000) then
+
if (lowprice < 1000) then
 
formattedprice = formattedprice .. fmlowprice
 
formattedprice = formattedprice .. fmlowprice
elseif (tonumber(fmlowprice) < 10000) then
+
elseif (lowprice < 10000) then
local length = #(tonumber(fmlowprice))
+
local length = #(fmlowprice)
 
local temp = string.sub(fmlowprice, -3)
 
local temp = string.sub(fmlowprice, -3)
 
formattedprice = formattedprice .. string.sub(fmlowprice, 1, (length-3)) .. "." .. temp
 
formattedprice = formattedprice .. string.sub(fmlowprice, 1, (length-3)) .. "." .. temp
Línea 58: Línea 58:  
formattedprice = formattedprice .. fmhighprice
 
formattedprice = formattedprice .. fmhighprice
 
else
 
else
--Spanish and highprice > 1000
+
--Spanish and highprice > 1000
temp = fmhighprice
+
if (highprice < 10000) then
+
local length = #(fmhighprice)
if (tonumber(fmhighprice) < 10000) then
  −
local length = #(tonumber(fmhighprice))
   
local temp = string.sub(fmhighprice, -3)
 
local temp = string.sub(fmhighprice, -3)
 
formattedprice = formattedprice .. string.sub(fmhighprice, 1, (length-3)) .. "." .. temp
 
formattedprice = formattedprice .. string.sub(fmhighprice, 1, (length-3)) .. "." .. temp
106 438

ediciones