List of utility methods to do Double to Short
Short | doubleToShort(double d) double To Short if (d >= Short.MIN_VALUE && d <= Short.MAX_VALUE) { return (short) d; return null; |
short[] | doubleToShort(double[] values) double To Short if (values == null) { return null; short[] results = new short[values.length]; for (int i = 0; i < values.length; i++) { results[i] = (short) values[i]; return results; ... |
Short | doubleToShort(final double value) double To Short return (short) value; |
int | doubleToShortBits(double d) Turns a double-precision floating point integer into an integer. long l = Double.doubleToLongBits(d); return (int) (l >> 48); |