Unsigned: Binary -> Integer: 1 0001 0111 0000 0011 0001 0111 0001 0101 0011 0111 0011 0010 Convert Base Two (2) Number to Base Ten (10), The Unsigned Binary Converted to a Positive Integer, Written in the Decimal System
The unsigned binary (in base two) 1 0001 0111 0000 0011 0001 0111 0001 0101 0011 0111 0011 0010(2) to a positive integer (with no sign) in decimal system (in base ten) = ?
1. Map the unsigned binary number's digits versus the corresponding powers of 2 that their place value represent.
248
1 247
0 246
0 245
0 244
1 243
0 242
1 241
1 240
1 239
0 238
0 237
0 236
0 235
0 234
0 233
1 232
1 231
0 230
0 229
0 228
1 227
0 226
1 225
1 224
1 223
0 222
0 221
0 220
1 219
0 218
1 217
0 216
1 215
0 214
0 213
1 212
1 211
0 210
1 29
1 28
1 27
0 26
0 25
1 24
1 23
0 22
0 21
1 20
0
2. Multiply each bit by its corresponding power of 2 and add all the terms up.
1 0001 0111 0000 0011 0001 0111 0001 0101 0011 0111 0011 0010(2) =
(1 × 248 + 0 × 247 + 0 × 246 + 0 × 245 + 1 × 244 + 0 × 243 + 1 × 242 + 1 × 241 + 1 × 240 + 0 × 239 + 0 × 238 + 0 × 237 + 0 × 236 + 0 × 235 + 0 × 234 + 1 × 233 + 1 × 232 + 0 × 231 + 0 × 230 + 0 × 229 + 1 × 228 + 0 × 227 + 1 × 226 + 1 × 225 + 1 × 224 + 0 × 223 + 0 × 222 + 0 × 221 + 1 × 220 + 0 × 219 + 1 × 218 + 0 × 217 + 1 × 216 + 0 × 215 + 0 × 214 + 1 × 213 + 1 × 212 + 0 × 211 + 1 × 210 + 1 × 29 + 1 × 28 + 0 × 27 + 0 × 26 + 1 × 25 + 1 × 24 + 0 × 23 + 0 × 22 + 1 × 21 + 0 × 20)(10) =
(281 474 976 710 656 + 0 + 0 + 0 + 17 592 186 044 416 + 0 + 4 398 046 511 104 + 2 199 023 255 552 + 1 099 511 627 776 + 0 + 0 + 0 + 0 + 0 + 0 + 8 589 934 592 + 4 294 967 296 + 0 + 0 + 0 + 268 435 456 + 0 + 67 108 864 + 33 554 432 + 16 777 216 + 0 + 0 + 0 + 1 048 576 + 0 + 262 144 + 0 + 65 536 + 0 + 0 + 8 192 + 4 096 + 0 + 1 024 + 512 + 256 + 0 + 0 + 32 + 16 + 0 + 0 + 2 + 0)(10) =
(281 474 976 710 656 + 17 592 186 044 416 + 4 398 046 511 104 + 2 199 023 255 552 + 1 099 511 627 776 + 8 589 934 592 + 4 294 967 296 + 268 435 456 + 67 108 864 + 33 554 432 + 16 777 216 + 1 048 576 + 262 144 + 65 536 + 8 192 + 4 096 + 1 024 + 512 + 256 + 32 + 16 + 2)(10) =
306 777 016 317 746(10)
The number 1 0001 0111 0000 0011 0001 0111 0001 0101 0011 0111 0011 0010(2) converted from an unsigned binary (in base 2) and written as a positive integer (with no sign) in decimal system (in base ten):
1 0001 0111 0000 0011 0001 0111 0001 0101 0011 0111 0011 0010(2) = 306 777 016 317 746(10)
Spaces were used to group digits: for binary, by 4, for decimal, by 3.
Convert unsigned binary numbers (base two) to positive integers in the decimal system (base ten)
How to convert an unsigned binary number (base two) to a positive integer in base ten:
1) Multiply each bit of the binary number by its corresponding power of 2 that its place value represents.
2) Add all the terms up to get the integer number in base ten.