Download presentation

Presentation is loading. Please wait.

Published byJacob Cliffe Modified about 1 year ago

1
How to Convert Decimal Numbers to Binary EXAMPLES

2
Convert 37 to Binary doesn’t fit into 37 b 7 =0 64 doesn’t fit into 37 b 6 =0 32 fits into 37 b 5 =1 Subtract: 37 – 32 = 5 Continue the process with 5 16 doesn’t fit into 5 b 4 =0 8 doesn’t fit into 5 b 3 =0 4 does fit into 5 b 2 =1 Subtract: = 1 Continue the process with 1 2 doesn’t fit into 1 b 1 =0 1 fits into 1 b 0 =

3
Convert 37 to Binary - Second Method Divide by 2 and store the remainder 37/2=18 b0=1 18/2 =9 b1=0 9/2=4 b2=1 4/2=2 b3=0 2/2=1 b4=0 1/2=0 b5=1 Write remainders from bottom up and pad with leading 0’s to fill all 8 bits

4
Convert 259 to binary 259/2 = 129 b0=1 129/2 = 64 b1=1 64/2 = 32 b2=0 32/2=16 b3=0 16/2=8 b4=0 8/2=4 b5=0 4/2=2 b6=0 2/2 =1 b7=0 1/2 = 0 b8= bytes are needed to store this number

Similar presentations

© 2016 SlidePlayer.com Inc.

All rights reserved.

Ads by Google