This is pretty interesting how you can convert not just standard decimal or hexadecimal numbers but any number with a base between 2 and 32. Here’s how: var myDecimalNum = 10; myDecimalNum.toString(16); // result : a var myHexNum = "a"; parseInt...

Markdown supported · ⌘↵ to post
No responses yet.