A bitmask from a configuration file
A config file enables features through a decimal bitmask, 490. To see which bits are on, convert 490 from decimal to binary: the result is 111101010 — bits 1, 3, 5, 6, 7, and 8 are set, counting from bit 1 at the right.
| Input | Value |
|---|---|
| value | 490 |
| fromBase | 10 |
| toBase | 2 |
| Result | 111101010 |