Changeset 18146 for branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters/SymbolicDataAnalysisExpressionExcelFormatter.cs
- Timestamp:
- 12/16/21 14:23:48 (3 years ago)
- Location:
- branches/3136_Structural_GP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3136_Structural_GP
- Property svn:mergeinfo changed
-
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
-
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters/SymbolicDataAnalysisExpressionExcelFormatter.cs
r17180 r18146 47 47 private string GetExcelColumnName(int columnNumber) { 48 48 int dividend = columnNumber; 49 string columnName = String.Empty;49 string columnName = string.Empty; 50 50 51 51 while (dividend > 0) { 52 52 int modulo = (dividend - 1) % 26; 53 53 columnName = System.Convert.ToChar(65 + modulo) + columnName; 54 dividend = ( int)((dividend - modulo) / 26);54 dividend = (dividend - modulo) / 26; 55 55 } 56 56 … … 134 134 } 135 135 stringBuilder.Append("))"); 136 } else if (symbol is Constant) {137 ConstantTreeNode constantTreeNode = node as ConstantTreeNode;138 stringBuilder.Append( constantTreeNode.Value.ToString(CultureInfo.InvariantCulture));136 } else if (symbol is INumericSymbol numSy) { 137 var numTreeNode = node as INumericTreeNode; 138 stringBuilder.Append(numTreeNode.Value.ToString(CultureInfo.InvariantCulture)); 139 139 } else if (symbol is Cosine) { 140 140 stringBuilder.Append("COS(");
Note: See TracChangeset
for help on using the changeset viewer.