js-xlsx sheet_to_json 读取小数位数变多

read as string .

例如:2.85 读取后变成 2.84999999999999999 这种。

以字符串形式读取。

XLSX.utils.sheet_to_json(workbook.Sheets[sheet], {raw:false})

参考资料:https://docs.sheetjs.com/#json

原文地址:https://www.cnblogs.com/kim-meng/p/11906047.html