Basic tab suggestions

This commit is contained in:
Jesse Boyd
2018-08-18 01:37:35 +10:00
parent 5d47d1bce6
commit 0cc0ee7f03
8 changed files with 53 additions and 9 deletions

View File

@ -52,6 +52,13 @@ public class StringMan {
return -1;
}
public static String prettyFormat(double d) {
if (d == Double.MIN_VALUE) return "-∞";
if (d == Double.MAX_VALUE) return "";
if(d == (long) d) return String.format("%d",(long)d);
else return String.format("%s",d);
}
public static boolean isBracketForwards(char c) {
switch (c) {
case '[':