+ 1
please Can anyone solve my problem i want to make simple Decimal to Binary Converter
Can anyone solve this? Please !
5 Respuestas
+ 3
In JS, just do:
var decnum = 42
var binstr = decnum.toString(2);
The parameter is the base to convert number, can be up to 36 ^^
0
Check this out .
it might help u out
https://code.sololearn.com/cH665GoLBySB/?ref=app
0
thanks!
0
goodluck brother with coding
0
@JULIAN ANTHONY again thanks to ans :-)