binary hexadecimal decimal conversion

Example : 12 bit unsigned integer

(fff) in base 16 = 15*16**2+15*16**1+15*16**0 = 4095

(1111 1111 1111) in base 2 = 2**11+2**10+2**9+2**8+2**7+2**6+2**5+2**4+2**3+2**2+2**1+2**0 = 4095

ref :

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s