Java Hex Convert To convertHexToFloat(long hexValue)

Here you can find the source of convertHexToFloat(long hexValue)

Description

Converts a hex value given by a long to a float value.

License

Open Source License

Parameter

Parameter Description
hexValue The hex value

Return

The float

Declaration

public static float convertHexToFloat(long hexValue) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from w  w  w.j  a  va  2 s . c  o m*/
     * Converts a hex value given by a long to a float value.<br>
     *
     * @param hexValue
     *            The hex value
     * @return The float
     */
    public static float convertHexToFloat(long hexValue) {
        return Float.intBitsToFloat((int) hexValue);
    }
}

Related

  1. convertHexLong(String hex)
  2. convertHexStringToBinary(String hexString)
  3. convertHexTime2Binary(String timespan)
  4. convertHextoASCII(String text)
  5. convertHexToChar(String hex)
  6. fromHex(byte[] hex)
  7. fromHex(char c)
  8. fromHex(char c)
  9. fromHex(char hi, char lo)