3:53 pm - Thursday March 24, 2816

Float Example program for intBitsToFloat(int bits)

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
/**
Author :candidjava.com
Description:   Returns the float value corresponding to a given bit representation.
*/
import java.io.*;
import java.lang.*;
import java.io.IOException;
public class IntBitsToFloatExample
{
public static void main(String args[])throws IOException
{
float f=Float.intBitsToFloat(65);//it returns the bit value of the float
System.out.println(f);
}
}

OutPut
9.1E-44

BACK

Filed in: Z-A All Java Codes

Comments are closed.