0

Can anyone help me to write a simple program to convert decimal number to binary number

20th Oct 2016, 5:02 PM
Ved
Ved - avatar
4 Respostas
+ 1
Thank you
21st Oct 2016, 9:48 AM
Ved
Ved - avatar
0
why do you Need this program?
20th Oct 2016, 6:30 PM
martin99
0
Go to Code Playground and search for Convert decimal to binary. I put my solution there.
20th Oct 2016, 8:01 PM
Nemanja
0
int value = 792; String getBinary = Integer.toBinaryString(value); System.out.println(getBinary); And if you mean decimal as in floating numbers then there is not built in method like the above for those Helper/wrapper classes, however there could be another way to do it.
20th Oct 2016, 11:24 PM
Ousmane Diaw