If only 1 format is given and it doesn't describe a number or date, the "-" sign is missing for negative values #2575
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
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#2575
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?
This is definitely from the "oddity" category! If you have a Number Format that does not have any numeric (or date) parts to it, and only 1 section (no ';'), and a negative number is passed, the result should start with a '-'. Also, the tests for this in oddities.json is incorrect. Please try it in Excel, as I didn't believe it does this either!
Incorrect:
Correct:
Keep the reports coming :)
These were generated from an older version of Excel (I want to say 2011/2013 but some might've been from older versions), we'll go back and check.
Out of curiosity, after setting the format to
A"TODO"
in Excel, is it automatically rewriting the format as\A"TODO"
? To see this, set the format toA"TODO"
in Excel, then try to change the format.Yes that is the case as you said. This also applies to the "\r" format and also I'm checking all of the ones from valid.tsv and finding more errors. For example, this same issue occurs on the first few formats listed in that file. (e.g. " Excellent").
I'm using Excel 2010.