List of utility methods to do Decimal
double | decimalScale(double value, double max) decimal Scale return value / decimalScalingBase(value);
|
double | decimalScaleTime(int value, int max) decimal Scale Time return (((double) value) / max); |
double | decimalScalingBase(double value) decimal Scaling Base long b = 1; while (b <= value) { b *= 10; return b; |
char | decimalToChar(int i) decimal To Char if (i >= 0 && i < 10) return (char) ('0' + i); else if (i >= 10 && i < 35) return (char) ('a' + i - 10); throw new IllegalArgumentException("cannot convert " + i + " to character"); |