logoalt Hacker News

XCSme • yesterday at 1:46 PM • 2 replies • view on HN

> 7, in base 2, that's 31

Huh? I didn't get that conversion part. How is he doing it?

Like, how can you have a "3" in base 2?


Replies

dhosek • yesterday at 2:18 PM

31 in base 2 is 3*2+1=7. Digits retain their meanings from base 10, but place values change.

Likewise AB in base 10 is A*10(=10*10)+B(=11)=111.

latexr • yesterday at 2:07 PM

[dead]