Here you can find the source of convertFloatToHex(float floatValue)
Parameter | Description |
---|---|
floatValue | The float value |
public static long convertFloatToHex(float floatValue)
//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; } }