**Data in the industry** | **Computer science**

I start this series of articles and posts on binary numbers which is clearly the basis of current **computer science**.
And therefore by consequence of **Assembly**. In general it is clearly ignored by developers using high level **programming languages**.
What's in it for us, welders or industrial workers? Assembler is the base language for a large majority of
**welding robots**.
It all revolves around the unit BIT, Binary digIT and data.
The data is the reason for the existence of a program, without the data, a program is useless.
Playing music, communicating between two devices, activating a switch... all use data.
A BIT can take two values: 0 or 1.
Like the powering up of a **welding machine** that is either open or closed, a soldering station is either on or off.
When the unit is on, its state is said to be 1 and conversely, if it is off, its state is 0.
This is a convention.
A byte is made up of 8 bits, so it can encode one value among 256 possible combinations (0 or 1),
2 bits will allow to encode 4 combinations (00, 01, 10, 11), i.e. 2^2. And so on, according to the formula 2^N, N being the number of bits.
So one byte can encode 2^8 = 256 combinations.

The weight of the bits starts at 0. The first bit will be the 0 bit, the least significant bit, LS6 cant bit) The last bit will be the N-1 bit, the most significant bit, MSb bit) The order of the bits is used to determine their value. The value of bit 0 is 20 = 1. Bit 4 has the value 2^4 = 16 Bit 8 has the value 28 = 256. It is therefore logical to order the bits starting from 0. The value of a bit is to be multiplied by its state. To find out the value of a byte, simply multiply 1 By their respective weight and add it all up. This gives the value of byte 011001016 as : 01100101b 0*2^7 + 1*246 + 1*2^5 + 0*2^4 + 0*2^3 + 1*2^2 + 0*2" 0*128 +1+64 + 1*32 + 0*16 + 0*8 + 1*4 + 0*2 + 1*1 = 99 in decimal.