dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Intermediate
Apr 17, 2020

Convert Float to Bits

Java provide a built-in method for converting a float number to bits as shown below:

long longBits = Double.doubleToLongBits(someDouble);
System.out.println(Long.toBinaryString(longBits)); 
Octavia Anghel
 
Thanks for your registration, follow us on our social networks to keep up-to-date