2 ms·
Turns out there's a reason for their placement: - "The digits 0–9 were arranged so they correspond to values in binary prefixed with 011, making conversion wit
by js2 13y ago
Turns out there's a reason for their placement:
- "The digits 0–9 were arranged so they correspond to values in binary prefixed with 011, making conversion with binary-coded decimal straightforward."
- "The letter "A" was placed in position 0x41 to match the draft of the corresponding British standard."
(Source: wikipedia.)
- leviself 13y agoAnother interesting bitwise trick: flip bit 5 to swap the case of an alphabetic letter.