Changeset 16411
- Timestamp:
- 12/20/18 09:52:47 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2968_infix_string_formatter/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Formatters/InfixExpressionStringFormatter.cs
r16340 r16411 178 178 179 179 private int GetDigits(int x) { 180 if (x < 10) 181 return 1; 182 else 183 return (int)Math.Floor(Math.Log10(x) + 1); 180 if (x == 0) return 1; 181 return (int) Math.Floor(Math.Log10(x) + 1); 184 182 } 185 183
Note: See TracChangeset
for help on using the changeset viewer.