Fraction format gives incorrect results if there is text in the middle #2576
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#2576
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?
Another one from the valid.tsv suite: If a fraction format has text between the integer part and the fraction, then the result integer and denominator is wrong.
Example:
gives
10abded 00/81
instead of12abded 28/81
.In this case, this pattern is matching because fmt is set to
#??/??
:then
frac
is returning[0, 1000, 81]
which is being split into10
and00
.Here is another couple strange cases, allowed by Excel (but not by the documentation):
And just when you thought it can't get any stranger, Excel also suppresses anything after the integer part if the fraction is not needed: