Changeset 345 for branches/3.0/sources/HeuristicLab.Functions
- Timestamp:
- 06/26/08 15:30:16 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/sources/HeuristicLab.Functions/FunctionView.cs
r2 r345 285 285 286 286 public void Visit(Constant constant) { 287 prefix += currentIndend + "[T]Constant(" + constant.Value.Data.ToString( ) + ";0;0)";287 prefix += currentIndend + "[T]Constant(" + constant.Value.Data.ToString("r") + ";0;0)"; 288 288 } 289 289 … … 333 333 334 334 public void Visit(HeuristicLab.Functions.Variable variable) { 335 prefix += currentIndend + "[T]Variable(" + variable.Weight + ";" + variable.VariableIndex + ";" + -variable.SampleOffset+ ")";335 prefix += currentIndend + "[T]Variable(" + variable.Weight.ToString("r") + ";" + variable.VariableIndex.ToString("r") + ";" + (-variable.SampleOffset).ToString("r") + ")"; 336 336 } 337 337
Note: See TracChangeset
for help on using the changeset viewer.