Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/11/15 13:54:36 (9 years ago)
Author:
pfleck
Message:

#2395 Fixed parsing issues by using the G17 format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/3.3/DoubleValue.cs

    r12012 r12431  
    4848
    4949    public override string ToString() {
    50       return Value.ToString("r");  // round-trip format
     50      return Value.ToString("G17");  // round-trip format
     51      // Note that the round-trip format "r" can still lead to different values when run on an 64-bit machine, therefore using G17 instead.
     52      // (https://msdn.microsoft.com/en-us/library/kfsatb94.aspx)
    5153    }
    5254
     
    7375    }
    7476    protected virtual string GetValue() {
    75       return Value.ToString("r");  // round-trip format
     77      return ToString();
    7678    }
    7779    protected virtual bool SetValue(string value) {
Note: See TracChangeset for help on using the changeset viewer.