diff --git a/demos/xspreadsheet/xlsxspread.js b/demos/xspreadsheet/xlsxspread.js index ac6e910..13e44d4 100644 --- a/demos/xspreadsheet/xlsxspread.js +++ b/demos/xspreadsheet/xlsxspread.js @@ -91,8 +91,8 @@ function xtos(sdata) { if (!cellText) { cellText = ""; type = "z"; - } else if (!isNaN(parseFloat(cellText))) { - cellText = parseFloat(cellText); + } else if (!isNaN(Number(cellText))) { + cellText = Number(cellText); type = "n"; } else if (cellText.toLowerCase() === "true" || cellText.toLowerCase() === "false") { cellText = Boolean(cellText);