final static String decimal (int n) { if (n==0) return "0"; String sign = ""; if (n<0) { sign = "-"; n = -n; } String result = ""; while (0<n) { int i = n%10; n /= 10; if (i==0) result = "0" + result; else if (i==1) result = "1" + result; else if (i==2) result = "2" + result; else if (i==3) result = "3" + result; else if (i==4) result = "4" + result; else if (i==5) result = "5" + result; else if (i==6) result = "6" + result; else if (i==7) result = "7" + result; else if (i==8) result = "8" + result; else if (i==9) result = "9" + result; } return (sign + result);
private final static String decimal (Offset o) { return decimal(o.toInt());
  final static String decimal (int n) {    if (n==0) return "0";    String sign = "";    if (n<0) {      sign = "-";      n = -n;    }    String result = "";    while (0<n) {      int i = n%10;      n /= 10;      if (i==0) result = "0" + result;      else if (i==1) result = "1" + result;      else if (i==2) result = "2" + result;      else if (i==3) result = "3" + result;      else if (i==4) result = "4" + result;      else if (i==5) result = "5" + result;      else if (i==6) result = "6" + result;      else if (i==7) result = "7" + result;      else if (i==8) result = "8" + result;      else if (i==9) result = "9" + result;    }    return (sign + result);  }