Take a look Float.floatToIntBits() or Float.floatToRawIntBits(). This gives you bits as an int. If you need it as a string Integer.toBinaryString().
Note that there may be a problem if HSB is turned on - you may need to convert to long to avoid overflow.
source
share