Java Data Type Tutorial - Java Float.floatToRawIntBits(float value)








Syntax

Float.floatToRawIntBits(float value) has the following syntax.

public static int floatToRawIntBits(float value)

Example

In the following code shows how to use Float.floatToRawIntBits(float value) method.


public class Main {

   public static void main(String[] args) {

     System.out.println("Value = " + Float.floatToRawIntBits(9.0f));  
   }
}

The code above generates the following result.