List of utility methods to do Float to Short
Short | floatToShort(final float value) float To Short return (short) value; |
Short | floatToShort(float f) float To Short if (f >= Short.MIN_VALUE && f <= Short.MAX_VALUE) { return (short) f; return null; |
short[] | floatToShort(float[] values) float 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; ... |