Skip to Main Content
Computer Science
book

Computer Science

by Ian Sinclair
May 2014
Beginner content levelBeginner
186 pages
9h
English
Newnes
Content preview from Computer Science
Fundamentals
(a) 1 Add base number (8, 16 etc.)
2 Convert result to binary
Example:
Single byte -97
Base of single byte is 256,
so that 256-97 =159
In binary, this is 10011111
(b)
1 Convert
2 Complement (interchange Is and 0s)
3 Add 1 to least significant digit
Example:
Single byte is -97
In binary, this is 01100001, and
the complement is 10011110
Addl to this to get 10011111
Figure 1.7 Methods for forming a negative number in binary. Method (a) is
easier if you are working in denary, but method (b) is used within the computer
Binary arithmetic
Binary arithmetic is simpler than denary arithmetic., but considerably more
tedious because of th ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Science

Computer Science

Robert Sedgewick

Publisher Resources

ISBN: 9781483104256