SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Linda Null ,julia Lobur
Chapter:
Data Representation In Computer Systems
Exercise:
Review Of Essential Terms And Concepts
Question:6 | ISBN:9780763704445 | Edition: 3

Question

What does overflow mean in the context of unsigned numbers?

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

The result of an arithmetic operation is outside the range of allowable precision for the given number of bits is known as overflow in the context of unsigned numbers. 

 

A binary number with N bits can represent unsigned integers from 0 to 2N-1.  

 

Using 4 bits it is possible to represent the decimal values 0 through 15 and 8 bits can represent the values 0 through 255.  

 

The range of values that can be represented by a given number of bits is extremely important when doing arithmetic operations on binary numbers.  

 

For example, consider the binary numbers are 4 bits in length, and we wish to add 11112 (1510) to 11112. The sum 15 plus 15 is 30, but 30 cannot be represented using only 4 bits. This is an example of a condition known as overflow, which occurs in unsigned binary representation. 

0 0

Discussions

Post the discussion to improve the above solution.