List of utility methods to do Decimal Create
String | decimal(final int i) decimal if (i < 10) { return "0" + i; return Integer.toString(i); |
boolean | decimal(Object o) decimal double n = 0; try { n = Double.parseDouble(o.toString().trim()); } catch (NumberFormatException e) { e.printStackTrace(); if (n > 0.0) { return true; ... |
double | decimalize(double dms) decimalize int deg = (int) dms / 100; double min = dms - deg * 100; return deg + min / 60; |
int | decimalize(float v) bins a priority value to an integer return bin(v, 10);
|