JS: Convert Decimal, Binary
Decimal to Binary
(15).toString(2).toUpperCase() === "1111"
Binary to Decimal
// direct binary input 0b1111 === 15 // convert binary to decimal parseInt("1111", 2 === 15)
[see Number.parseInt]
JavaScript, Convert Decimal, Hexadecimal, Binary
JavaScript, Number
- JS: Number
- JS: Assignment Operators
- JS: Math Operators
- JS: Number Comparison Operators
- JS: Convert String, Number
- JS: Convert Decimal, Hexadecimal
- JS: Convert Decimal, Binary
- JS: Format Number
- JS: Random Integer Range Function ð
- JS: Number Object
- JS: Number Constructor
- JS: Number.prototype
- JS: Math