Changeset 12431
- Timestamp:
- 06/11/15 13:54:36 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Data/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/3.3/DoubleArray.cs
r12012 r12431 56 56 } 57 57 protected virtual string GetValue(int index) { 58 return this[index].ToString( );58 return this[index].ToString("G17"); 59 59 } 60 60 protected virtual bool SetValue(string value, int index) { -
trunk/sources/HeuristicLab.Data/3.3/DoubleMatrix.cs
r12012 r12431 61 61 } 62 62 protected virtual string GetValue(int rowIndex, int columIndex) { 63 return this[rowIndex, columIndex].ToString( );63 return this[rowIndex, columIndex].ToString("G17"); 64 64 } 65 65 protected virtual bool SetValue(string value, int rowIndex, int columnIndex) { -
trunk/sources/HeuristicLab.Data/3.3/DoubleRange.cs
r12012 r12431 56 56 57 57 public override string ToString() { 58 return string.Format("Start: {0 }, End: {1}", Start, End);58 return string.Format("Start: {0:G17}, End: {1:G17}", Start, End); 59 59 } 60 60 -
trunk/sources/HeuristicLab.Data/3.3/DoubleValue.cs
r12012 r12431 48 48 49 49 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) 51 53 } 52 54 … … 73 75 } 74 76 protected virtual string GetValue() { 75 return Value.ToString("r"); // round-trip format77 return ToString(); 76 78 } 77 79 protected virtual bool SetValue(string value) {
Note: See TracChangeset
for help on using the changeset viewer.