3
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by srs_grp
0

How can i convert float or double to binary?

Same way I convert.

I would not mind giving you the answer, but let us see what have you tried. We only give answers to those who have at least made an effort to find them,
So first show us your code then we will help you.

0

Same way I convert.

I would not mind giving you the answer, but let us see what have you tried. We only give answers to those who have at least made an effort to find them,
So first show us your code then we will help you.

What we have tried is as follows:

String binary=Integer.toBinaryString(Float.toRawIntBits(1.1));

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.