0
Can anyone help me to write a simple program to convert decimal number to binary number
4 ответов
+ 1
Thank you
0
why do you Need this program?
0
Go to Code Playground and search for Convert decimal to binary. I put my solution there.
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.