+ 3
Is there a way in JavaScript to convert numbers between DecâHex, DecâBin and BinâHex?
Thanks in advance!
3 RĂ©ponses
+ 13
num.toString(2) <- BINary
num.toString(16) <- HEXademical
num.toString(8) <- OCTal
num.toString(10) <- DECimal (normal nums)
+ 3
Thanks a lot!
0
<script language="python">
hex = int(input("Enter Value to convert to hex"),16)
print(hex)
</script>
???????????