Java Utililty Methods Double Number Create

List of utility methods to do Double Number Create

Description

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

Method

doubletoDouble(byte[] arr)
to Double
return Double.longBitsToDouble(toLong(arr));
doubletoDouble(byte[] b)
to Double
return toDouble(b, 0);
doubletoDouble(byte[] byteArray)
to Double
if (byteArray == null || byteArray.length != 8)
    return 0x0;
return Double.longBitsToDouble(toLong(byteArray));
doubletoDouble(byte[] bytes)
to Double
long longValue = toLong(bytes);
return Double.longBitsToDouble(longValue);
doubletoDouble(byte[] bytes)
Convert bytes to a double value.
double retVal = 0;
try {
    if (bytes == null)
        return 0.0;
    String s = new String(bytes);
    return Double.parseDouble(s);
} catch (NumberFormatException nfe) {
return retVal;
doubletoDouble(byte[] bytes, int index)
to Double
return Double.longBitsToDouble(toLong(bytes, index));
doubletoDouble(byte[] bytes, int offset)
to Double
return Double.longBitsToDouble(toLong(bytes, offset));
doubletoDouble(byte[] data)
to Double
if (data.length != 8)
    return 0;
return Double.longBitsToDouble(toLong(data));
doubletoDouble(byte[] data)
Convert byte array to double
if (data == null || data.length != 8)
    return 0x0;
return Double.longBitsToDouble(toLong(data));
doubletoDouble(byte[] data)
to Double
if ((data == null) || (data.length != 8)) {
    return 0x0;
return Double.longBitsToDouble(toLong(data));