List of utility methods to do Number to Float
Float | NumberToFloat(final Number value) Number To Float return value == null ? null : value.floatValue();
|
Float | numberToFloat(Number n) number To Float if (n != null) { if (n instanceof Integer) return ((Integer) n).floatValue(); else if (n instanceof Float) return ((Float) n); else if (n instanceof Double) return ((Double) n).floatValue(); else if (n instanceof Short) ... |