Java Utililty Methods Float to Double

List of utility methods to do Float to Double

Description

The list of methods to do Float to Double are organized into topic(s).

Method

DoublefloatToDouble(final float value)
float To Double
return (double) value;
doublefloatToDouble(float converThisNumberToFloat)
float To Double
String floatNumberInString = String.valueOf(converThisNumberToFloat);
double floatNumberInDouble = Double.parseDouble(floatNumberInString);
return floatNumberInDouble;
double[]floatToDouble(float[] array)
Convert a float array to a double array.
double[] darr = new double[array.length];
for (int i = 0; i < array.length; i++) {
    darr[i] = array[i];
return darr;
double[]floatToDouble(float[] values)
float To Double
if (values == null) {
    return null;
double[] results = new double[values.length];
for (int i = 0; i < values.length; i++) {
    results[i] = values[i];
return results;
...
double[]floatToDoubleArray(float[] arr)
float To Double Array
double[] ret = new double[arr.length];
for (int i = 0; i < arr.length; i++) {
    ret[i] = new Float(arr[i]).doubleValue();
return ret;
doublefloatToDoubleLower(float f)
Return the largest double that rounds up to this float.
if (Float.isNaN(f)) {
    return Double.NaN;
if (Float.isInfinite(f)) {
    if (f < 0) {
        return Double.NEGATIVE_INFINITY;
    } else {
        return Double.longBitsToDouble(0x47efffffffffffffL);
...