+ 3
Is there a way in JavaScript to convert numbers between Dec↔Hex, Dec↔Bin and Bin↔Hex?
Thanks in advance!
3 odpowiedzi
+ 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>
???????????