Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/26/08 15:30:16 (17 years ago)
Author:
gkronber
Message:
  • merged r338 r341 and r343 from the ticket-specific trunk into the HL3.0 stable branch
  • fixed serialization and display of floating point numbers in HL3.0 stable plugins HeuristicLab.Functions and HeuristicLab.DataAnalysis

(ticket #175)

Location:
branches/3.0/sources/HeuristicLab.Constraints
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/sources/HeuristicLab.Constraints/DoubleBoundedConstraint.cs

    r139 r345  
    136136      XmlNode node = base.GetXmlNode(name, document, persistedObjects);
    137137      XmlAttribute lb = document.CreateAttribute("LowerBound");
    138       lb.Value = LowerBound.ToString(CultureInfo.InvariantCulture);
     138      lb.Value = LowerBound.ToString("r", CultureInfo.InvariantCulture);
    139139      XmlAttribute lbi = document.CreateAttribute("LowerBoundIncluded");
    140140      lbi.Value = lowerBoundIncluded.ToString();
     
    142142      lbe.Value = lowerBoundEnabled.ToString();
    143143      XmlAttribute ub = document.CreateAttribute("UpperBound");
    144       ub.Value = upperBound.ToString(CultureInfo.InvariantCulture);
     144      ub.Value = upperBound.ToString("r", CultureInfo.InvariantCulture);
    145145      XmlAttribute ubi = document.CreateAttribute("UpperBoundIncluded");
    146146      ubi.Value = upperBoundIncluded.ToString();
  • branches/3.0/sources/HeuristicLab.Constraints/DoubleBoundedConstraintView.cs

    r2 r345  
    6969        ubEnabledCheckBox.Enabled = false;
    7070      } else {
    71         lbTextBox.Text = DoubleBoundedConstraint.LowerBound + "";
     71        lbTextBox.Text = DoubleBoundedConstraint.LowerBound.ToString("r");
    7272        lbTextBox.Enabled = DoubleBoundedConstraint.LowerBoundEnabled;
    7373        lbIncludedCheckBox.Checked = DoubleBoundedConstraint.LowerBoundIncluded;
     
    7676        lbEnabledCheckBox.Enabled = true;
    7777
    78         ubTextBox.Text = DoubleBoundedConstraint.UpperBound + "";
     78        ubTextBox.Text = DoubleBoundedConstraint.UpperBound.ToString("r");
    7979        ubTextBox.Enabled = DoubleBoundedConstraint.UpperBoundEnabled;
    8080        ubIncludedCheckBox.Checked = DoubleBoundedConstraint.UpperBoundIncluded;
Note: See TracChangeset for help on using the changeset viewer.