AllenFang / AllenFang/react-bootstrap-table
ExportCSV function cannot export correct data (number with more than 15 digits) in CSV
- Lenguaje dominante
- JavaScript
- Estrellas
- 2.2k
- Forks
- 761
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Hi Guys, I need a favor on the exportCSV function, as i noticed there is a bug:
In details:
In table column with type = number, if the value has more than 15 digits, the data after export in CSV will always convert to "0".
E.g:
Number as below 16 digits show in react-bootstrap-table is:
252083158926928**6**
However, in CSV file after export, it will show 252083158926928**0**
Same goes to any other value that have more that 15 digits, in table show as (25208315892692863435), however in CSV file after export the value showed as 25208315892692800000.
[sample code](https://gist.github.com/paradise5455/dcec8d2c34d02742bbe487d43a7935cd)
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.