Search for a tool
Binary Code

Tool to make binary conversions. Binary is a numeric system using base 2 used in informatics, symbols used in binary notation are generally zero and one (0 and 1).

Results

Binary Code -

Tag(s) : Informatics, Mathematics, Cryptography

dCode and you

dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day!
You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!

Team dCode read all messages and answer them if you leave an email (not published). It is thanks to you that dCode has the best Binary Code tool. Thank you.

# Binary Code

## Binary Converter/Encoder

Tool to make binary conversions. Binary is a numeric system using base 2 used in informatics, symbols used in binary notation are generally zero and one (0 and 1).

### How to convert in binary?

It is a simple base conversion in base 2

Example: 5 (base 10) = 1*2^2+0*2^1+1*2^0 = 101 (base 2).

### How to convert from binary

It is a base conversion from base 2 to base 10

Example: 111 (base 2) = 1*2^2+1*2^1+1*2^0 = 7 (base 10)

### What is a bit?

A bit (contraction of binary digit) is a symbol in the binary notation: 0 or 1.

### Why defining a number of bits?

In computer informatics, size is limited, numbers are stocked in memory cells of size N where N is the number of bits.

### how many bits are necessary to represent a number?

This depends on the size of the number, here are the min-max intervals:

 0-1 1 2-3 2 4-7 3 8-15 4 16-31 5 32-63 6 64-127 7 128-255 8 256-511 9 512-1023 10 1024-2047 11 2048-4095 12 2^(n-1) - (2^n)-1 n

### What is 1's complement?

In informatics, one's complement is writing a number negatively inversing 0 and 1.

Example: 0111 becomes 1000, so 7 becomes -7

### What is 2's complement?

In informatics, one's complement is writing a number negatively inversing 0 and 1 and adding 1.

Example: 0111 becomes 1001

### Why is there 10 kinds of people in the world?

There are 10 kinds of people in the world, those that understand binary, and those that don't...

10 in binary equals 2 in decimal.