Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Methods for Representation of Negative Numbers in Binary Understanding || Lesson 15 ||

Автор: Wisdomers - Computer Science and Engineering

Загружено: 2020-05-03

Просмотров: 18697

Описание:

Here we will try to understand Methods for Representation of Negative Numbers in Binary Understanding.

For example, consider the decimal number +9.

What is the binary equivalent of 9?

The binary equivalent of 9 is 1001.

How to represent -9 in binary?

The negative or signed numbers should also have a representation in the binary.

Before understanding the methods of representing binary numbers we will understand a bit about components of a computer and how the data unit will be stored and processed on a computer.

Whenever we buy a computer we will ask for a 64-bit or a 32-bit computer.

What does a 64-bit or a 32-bit computer mean?

The components of the computer like ALU, Registers, Address Bus, and Databus are used to store or process a 64-bit or 32-bit data unit.

For example, Assume an 8-bit computer which is not practically available.

On this 8-bit register if we want to store a binary value of 9, how it will be represented is as shown in the image below.

Even though four bits are sufficient to represent 1001 because the register is an 8-bit register we use the remaining bits with 0 as shown in the image below.

Similarly, to represent 1001 on a 64-bit computer 1001 is preceded by 60 o's.

Methods for Representation of Negative Numbers in Binary

Negative numbers in binary can be represented in 3 ways.

1. Sign Magnitude Method.

2. 1's Complement Method.

3. 2's Complement Method.

For all these methods we will assume an 8-bit register.

In all these methods the MSB is used for sign bit and remaining bits are used for the magnitude of the binary number as shown in the image below.

Sign Magnitude Method:

In the Sign Magnitude method, an additional bit called sign bit is placed in front of the number.

If the sign bit 0, the number is positive.

If the sign bit 1, the number is negative.

In the sign-magnitude representation if we try to represent +9 the sign bit will be zero and the magnitude is 0001001 as shown in the image below.

If we try to represent -9 the sign bit will be one and the magnitude is 0001001 as shown in the image below.

1's Complement Method:

In 1's Complement Method, if the number is positive the magnitude is represented in its true binary form and sign 0 is placed in front of MSB.

For example, if we try to represent +9 the sign bit will be zero and the magnitude is 0001001 [It's a true binary form ] as shown in the image below.

If we try to represent -9 the sign bit will be one and the magnitude is 1110110 [ 1's complement of 0001001 ] as shown in the image below.

2's Complement Method:

In 2's Complement Method, if the number is positive the magnitude is represented in its true binary form, and sign 0 is placed in front of MSB.

For example, if we try to represent +9 the sign bit will be zero and the magnitude is 0001001 [It's a true binary form ] as shown in the image below.

If we try to represent -9 the sign bit will be one and the magnitude is 1110111 [ 2's complement of 0001001 ] as shown in the image below.



Link for playlists:
   / @wisdomerscse  


Link for our website: https://learningmonkey.in

Follow us on Facebook @   / learningmonkey  

Follow us on Instagram @   / learningmonkey1  

Follow us on Twitter @   / _learningmonkey  

Mail us @ [email protected]

Methods for Representation of Negative Numbers in Binary Understanding || Lesson 15 ||

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Range of Negative Numbers in Different Representations || Lesson 16 || Digital Electronics ||

Range of Negative Numbers in Different Representations || Lesson 16 || Digital Electronics ||

Введение в десятичную систему счисления || Урок 1 || Цифровая логика || Learning Monkey ||

Введение в десятичную систему счисления || Урок 1 || Цифровая логика || Learning Monkey ||

Binary Addition and Subtraction With Negative Numbers, 2's Complements & Signed Magnitude

Binary Addition and Subtraction With Negative Numbers, 2's Complements & Signed Magnitude

Twos complement: Negative numbers in binary

Twos complement: Negative numbers in binary

Practical uses of bitwise operations - Implementing a Flag System

Practical uses of bitwise operations - Implementing a Flag System

Decimal to IEEE 754 Floating Point Representation

Decimal to IEEE 754 Floating Point Representation

Алгоритмы и структуры данных за 15 минут! Вместо 4 лет универа

Алгоритмы и структуры данных за 15 минут! Вместо 4 лет универа

Дополнение до 1 и дополнение до 2 | Объяснение знаковых двоичных чисел

Дополнение до 1 и дополнение до 2 | Объяснение знаковых двоичных чисел

Электронные конфигурации с периодической таблицей | Химия | Академия Хана

Электронные конфигурации с периодической таблицей | Химия | Академия Хана

Что такое TCP/IP: Объясняем на пальцах

Что такое TCP/IP: Объясняем на пальцах

«Вот теперь я задумался об эмиграции»: зачем Кремль заблокировал Roblox и как реагируют россияне

«Вот теперь я задумался об эмиграции»: зачем Кремль заблокировал Roblox и как реагируют россияне

Top 50 Christmas Songs of All Time 🎄 Best Christmas Music Playlist

Top 50 Christmas Songs of All Time 🎄 Best Christmas Music Playlist

Understanding Carry Look Ahead Adder || Lesson 87 || Digital Electronics || Learning Monkey ||

Understanding Carry Look Ahead Adder || Lesson 87 || Digital Electronics || Learning Monkey ||

Representations of Floating Point Numbers

Representations of Floating Point Numbers

שיטות הספירה - בסיסי ספירה בינארי עשרוני הקסה-דצימל והמרות ביניהם

שיטות הספירה - בסיסי ספירה בינארי עשרוני הקסה-דצימל והמרות ביניהם

Как умножать двоичные числа | PingPoint

Как умножать двоичные числа | PingPoint

Роковая ошибка Jaguar: Как “повестка” в рекламе добила легенду британского автопрома

Роковая ошибка Jaguar: Как “повестка” в рекламе добила легенду британского автопрома

Представление знакового числа | Форма знаковой величины | Форма дополнения до 1 и дополнения до 2

Представление знакового числа | Форма знаковой величины | Форма дополнения до 1 и дополнения до 2

ДНК создал Бог? Самые свежие научные данные о строении. Как работает информация для жизни организмов

ДНК создал Бог? Самые свежие научные данные о строении. Как работает информация для жизни организмов

Top Christmas Songs of All Time 🎄 Merry Christmas Songs 2026 🎁 Best Christmas Music Playlist 2026

Top Christmas Songs of All Time 🎄 Merry Christmas Songs 2026 🎁 Best Christmas Music Playlist 2026

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]