None of the samples of accord.net handles international parsing of decimals

61 Views Asked by At

Since all the input sample files for the programming samples of accord.net are using en-US decimal points, all regions that are not using that decimal point will not be able to load the sample files, because the parsing of the decimalnumbers fails.

Here is the fix: before the load loop add this line:

System.Globalization.CultureInfo us = new System.Globalization.CultureInfo("en-US");

Then parse the decimals like this:

double.Parse(strs[0], us.NumberFormat);
1

There are 1 best solutions below

0
On

Technically this is not a question, but a bug-report