Can anyone please tell me how can I convert this float number: 12.25 to binary? I know how to convert the "12" but not the 0.25
Any help is much appreciated. Thanks
Keep multiplying the number after decimal by 2 till it becomes 1.0:
0.25*2 = 0.50 0.50*2 = 1.00
and the result is in reverse order being .01
1.4m articles
1.4m replys
5 comments
57.0k users