The decimal rounding occurs automatically in generated csv file. #3084
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#3084
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I generate the .csv file using
XLSX.utils
.my data format is as below.
I converted list value using
aoa_to_sheet()
.So I got a
XLSX.Worksheet
format data as below.console.log
resultIt doesn't appear to round the numeric data.
csv
resultBut when I open csv file, some numeric data is rounded.
At the decimal point, if the total length of the exponent part and the mantissa part exceeds 10, rounding seems to occur.
As far as I know, adding a
z
property keeps the decimal point.But when I checked these interfaces, it seemed that these options were not supported.
Is there any other way but for me to add
z
property myself?Thanks
SheetJS is matching Excel behavior. To verify this, manually enter the value
12345.123456
in a cell.The
General
format typically shows up to 11 characters. The decimal character counts as one character, leaving 10 digits.This question was asked on our Discord chat. https://discord.com/channels/1039771292859109436/1039788802220232744/1148253979076210788 more details.
If you would like some ideas for workarounds, join the chat and ask.