Changeset 2423 for trunk/sources/HeuristicLab.GP.StructureIdentification
- Timestamp:
- 10/09/09 14:11:38 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/SymbolicExpressionExporter.cs
r2264 r2423 24 24 using System; 25 25 using System.Collections.Generic; 26 using System.Globalization; 26 27 27 28 namespace HeuristicLab.GP.StructureIdentification { … … 118 119 119 120 public static string ExportToScheme(this Constant constant, IFunctionTree tree) { 120 return ((ConstantFunctionTree)tree).Value.ToString("r" );121 return ((ConstantFunctionTree)tree).Value.ToString("r", CultureInfo.InvariantCulture.NumberFormat); 121 122 } 122 123 … … 167 168 public static string ExportToScheme(this Variable variable, IFunctionTree tree) { 168 169 var varTree = (VariableFunctionTree)tree; 169 return "variable " + varTree.Weight.ToString("r" ) + " " +170 return "variable " + varTree.Weight.ToString("r", CultureInfo.InvariantCulture.NumberFormat) + " " + 170 171 varTree.VariableName + " " + varTree.SampleOffset; 171 172 } 172 173 public static string ExportToScheme(this Differential differential, IFunctionTree tree) { 173 174 var varTree = (VariableFunctionTree)tree; 174 return "differential " + varTree.Weight.ToString("r" ) + " " +175 return "differential " + varTree.Weight.ToString("r", CultureInfo.InvariantCulture.NumberFormat) + " " + 175 176 varTree.VariableName + " " + varTree.SampleOffset; 176 177 }
Note: See TracChangeset
for help on using the changeset viewer.