how do I convert float and double data types to binary. For float, ive used the function



Integer.toBinaryString(Float.floatToRawIntBits(value));


But the answer doesnt seem to be right....