Convert float value to Hex String value

static String toHexString(float f)
Returns a hexadecimal string representation of the float argument.

public class Main {
  public static void main(String[] args) {
    Float floatObject2 = Float.valueOf(1.1F);
    System.out.println(floatObject2);
    System.out.println(Float.toHexString(floatObject2));
    
  }
}

The output:


1.1
0x1.19999ap0
Home 
  Java Book 
    Essential Classes  

Float:
  1. Float class
  2. MAX/MIN_VALUE Find out the Maximum value and Minimum value a float type can have
  3. Create a Float object
  4. Convert Float to byte, double, float, int, long and short
  5. Compare two float objects
  6. Infinite and Not A Number
  7. Convert float value to Hex String value
  8. Convert float value to String value
  9. Convert string value to float value
  10. Bit oriented calculation for float