Changeset 10835
- Timestamp:
- 05/11/14 14:32:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionTreeTile.cs
r10833 r10835 240 240 if (term != null) { 241 241 var parts = term.ToString().Split(' '); // split by space 242 if (parts.Length == 1) { 243 return parts[0].Substring(0, 5); 244 } else { 245 return parts[0].Substring(0, 5) + parts[1]; 246 } 242 return parts.Length == 1 ? string.Format("{0:0.000}", double.Parse(parts[0])) : string.Format("{0:0.000} {1}", double.Parse(parts[0]), parts[1]); 247 243 } 248 244 return node.Symbol.ToString().Substring(0, 3);
Note: See TracChangeset
for help on using the changeset viewer.