Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3544 for trunk


Ignore:
Timestamp:
04/27/10 15:46:38 (15 years ago)
Author:
gkronber
Message:

Changed CsvFileParser to parse double values with current culture instead of invariant culture. #938 (Data types and operators for regression problems)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/CsvFileParser.cs

    r3373 r3544  
    9797    private void TryParse(string fileName) {
    9898      Exception lastEx = null;
    99       NumberFormatInfo[] possibleFormats = new NumberFormatInfo[] { NumberFormatInfo.InvariantInfo };
     99      NumberFormatInfo[] possibleFormats = new NumberFormatInfo[] { CultureInfo.CurrentCulture.NumberFormat };
    100100      foreach (NumberFormatInfo numberFormat in possibleFormats) {
    101101        using (StreamReader reader = new StreamReader(fileName)) {
Note: See TracChangeset for help on using the changeset viewer.