Questions tagged [binary]

Questions related with (base 2) representation of numbers and their unique properties arising out of number representation.

Binary (base $2$) represents numbers using only the digits $0$ and $1$.

We write:

$$n=\sum\limits_{k=n}^0 a_k2^k$$

to represent a nonnegative integer, so for example $27_{10}=16+8+2+1=11011_2$

To represent nonnegative real numbers, we use:

$$n=\sum\limits_{k=n}^{-m} a_k2^k$$

where $m$ can be $\infty$. So, for example $11.001_2=3.125_{10}$.

1703 questions
-1
votes
3 answers

Generating binary array

Programming side (C++) I have this task where I need to get 5 numbers in binary array, but i cant think of way to generate it. The building process is: Starts Width 10 then adds same number but 1 and 0 are switched places like this 10 10 + 01 1001…
Puupuls
  • 25
-2
votes
1 answer

How to calculate expected code length?

How to calculate expected code length?
user1291077
-2
votes
1 answer

Are there more decimal or binary numbers in the world?

The Hindu–Arabic numeral system is a positional decimal numeral system, and is the most common system for the symbolic representation of numbers in the world. Is this statement true? I guess the binary code for characters or opcodes is not a number.…
darsie
  • 113
-3
votes
2 answers

Binary System Problem

Can someone explain how 2^-1=0.5? I know it's a stupid question, but my head is stuck. I have this : Binary
Steve
  • 109
  • 1
-3
votes
1 answer

Two's complement involving binary numbers

$$0010\ 0100\ 1001\ 0010\ 0100\ 1001\ 0010\ 0100$$ What decimal number does it represent, assuming it's a two’s complement integer?
Roxas
  • 1
-4
votes
3 answers

Need help converting a number into IEEE floating point format

I need to convert the number $74 \frac{5}{14}$ into IEEE floating point format. Can someone help me with this
-5
votes
4 answers

Binary Subtraction of Two Unsigned Integers

For unsigned integers $ X = 00110101 $ and $ Y = 10110101 $, determine the following values: $ X + Y = (\text{My answer is}) ~ 11101010 $. $ X - Y = ~ ??? $ $ Y - X = ~ ??? $
-6
votes
1 answer

list of all 256 binary combinations of 8 digits?

i don't have any coding/java etc software. how can i view all the 256 binary combinatios from 8 digits? can someone tell me where can i find them in a list (any site/online generator etc) or copy them here? :/ thanks everyone in advance!! like:…
1 2 3
16
17