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.


/*  w w  w. j ava 2 s.co  m*/
public class Main {

   public static void main(String[] args) {

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

The code above generates the following result.





















Home »
  Java Tutorial »
    java.lang »




Boolean
Byte
Character
Class
Double
Enum
Float
Integer
Long
Math
Number
Object
Package
Process
ProcessBuilder
Runnable
Runtime
SecurityManager
Short
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
System
Thread
ThreadGroup
ThreadLocal
Throwable