Signed and Unsigned Numbers. Binary Integers #8

Описание к видео Signed and Unsigned Numbers. Binary Integers #8

The difference between a signed and unsigned integer is in its last binary digit. This is bit 15 in a 16 bit integer and bit 31 in a 32 bit integer.

You can set all the bits to 0 of both signed and unsigned numbers by writing a 0 to the integer. To set all bits to 1 in a signed integer to 1, write a -1 to the integer.

Binary Numbers. How to Convert Binary to Decimal and Decimal to Binary    • Binary Numbers Explained. Convert Bin...  

Items used in this video:
PLC Tools SIM-ALP2 Analog Simulator https://controls.tw/yt-sim-alp2

The above links make these videos possible. Please use them!

Support these videos while you advance your skills https://controls.tw/yt-courses

0:00 Name the Podcast
1:25 Decimal Value of Each Binary Bit
3:41 Binary Sign Bit
12:20 Range of 16 bit Integer: -32,768 to +32,767
15:19 Clearing binary bits in an integer
16:04 Setting All Binary Bits to 1 in a Signed Integer

Комментарии

Информация по комментариям в разработке