Java Float Number Convert to convertFloatToHex(float floatValue)

Here you can find the source of convertFloatToHex(float floatValue)

Description

Convert a float value to a hex value given as a long.

License

Open Source License

Parameter

Parameter Description
floatValue The float value

Return

The hex value

Declaration

public static long convertFloatToHex(float floatValue) 

Method Source Code

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

public class Main {
    /**/*from w w w  .ja v  a  2  s.c  o  m*/
     * Convert a float value to a hex value given as a long.<br>
     *
     * @param floatValue
     *            The float value
     * @return The hex value
     */
    public static long convertFloatToHex(float floatValue) {
        return Float.floatToIntBits(floatValue) & 0xFFFFFFFFL;
    }
}

Related

  1. convertFloatDouble(float[] in)
  2. convertFloatFromBytes(byte[] byteArray)
  3. convertFloatFromStream(byte[] stream, int intStart, int decStart, int intNumbers, int decNumbers)
  4. convertFloatMatrixToDoubles(float[][] input, int dimRows, int dimColoumns)
  5. convertFloatsToFixed(float[] values)
  6. convertFloatToString(float value)
  7. convertFloatValue(String data)
  8. convertFloatVecToDoubles(float[] input)