Skip to content

Built in number formats are different for differen languages #774

Open
@ihorbach

Description

@ihorbach

If a cell uses some built in number format, this will not be specified explicitelly. It is just the index of the format that is given. A parsing tool (like EPPlus) have to be aware of the built in formats. But the problem is, these are different for different cultures. Did you know?

I miss german built in formats, so I will create a pull request to add them. But generally you'd better consider supporting all other cultrues, that excel supports

Here is one example, how you can reproduce the problem

var testThread = new Thread(() =>
{
	Assert.AreEqual("#,##0 _€;-#,##0 _€", ExcelNumberFormat.GetFromBuildInFromID(37));
});

testThread.CurrentCulture = new CultureInfo("de-DE");

testThread.Start();

Metadata

Metadata

Assignees

Labels

alt-enhancementalternative enchancement label for organization purposesbugSomething isn't working

Type

No type

Projects

Status

In progress

Relationships

None yet

Development

No branches or pull requests

Issue actions