Home » Tip Bank » Java
  • Comment on this Article
Language: Java
Expertise: Intermediate
Apr 17, 2020

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Watch

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
 
Submit a Tip
Browse "Java" Tips
Browse All Tips
html.net
javascriptweekly.com