List of utility methods to do Integer to
double | intToDegree(int storedInt) Converts back the integer value. return (double) storedInt / DEGREE_FACTOR; |
int[] | intToDigits(int n) int To Digits String s = String.valueOf(n); int size = s.length(); int[] retval = new int[size]; for (int i = 0; i < size; i++) { retval[i] = Integer.parseInt(String.valueOf(s.charAt(i))); return retval; |
double | intToDouble(int coordinate) Converts a coordinate from microdegrees to degrees. return coordinate / FACTOR_DOUBLE_TO_INT;
|
double[] | intToDouble(int[] input) int To Double double[] out = new double[input.length]; for (int i = 0; i < out.length; i++) { out[i] = input[i]; return out; |
double | intToDouble100000(int i) int To Double return i / 100000.0;
|
double[] | intToDoubleArray(int[] labels) int To Double Array double[] targets = new double[labels.length]; for (int i = 0; i < labels.length; i++) { targets[i] = labels[i]; return targets; |
void | intToEightByte(long value, byte[] dest, int off) int To Eight Byte long val1 = (value & 0xFFFFFFFF00000000L) >>> 32; long val2 = (value & 0x00000000FFFFFFFFL); intToFourByte(val1, dest, 0 + off); intToFourByte(val2, dest, 4 + off); |
String | intToEightHexString(final int value) Convert an integer to a eight character Hex string, with leading zeroes. final StringBuffer buffer; final String strHex; buffer = new StringBuffer(); strHex = Integer.toHexString(value & 0xFFFFFFFF); if (strHex.length() == 0) { buffer.append("00000000"); } else if (strHex.length() == 1) { buffer.append("0000000"); ... |
double | intToEle(int integEle) Converts the integer value retrieved from storage into elevation (in meters). if (integEle == Integer.MAX_VALUE) return Double.MAX_VALUE; return integEle / ELE_FACTOR; |
String | intToEncodedID(int input) int To Encoded ID int base = 36; if (Character.MAX_RADIX < base) base = 16; return Integer.toString(input, base); |