Skip to Content
Write Great Code, Volume 1, 2nd Edition
book

Write Great Code, Volume 1, 2nd Edition

by Randall Hyde
August 2020
Intermediate to advanced
472 pages
13h 37m
English
No Starch Press
Content preview from Write Great Code, Volume 1, 2nd Edition

3BINARY ARITHMETIC AND BIT OPERATIONS

Image

As Chapter 2 explained, understanding how computers represent data in binary is a prerequisite to writing software that works well on them. Of equal importance is understanding how computers operate on binary data. That’s the focus of this chapter, which explores arithmetic, logical, and bit operations on binary data.

3.1 Arithmetic Operations on Binary and Hexadecimal Numbers

Often, you need to manually operate on two binary (or hexadecimal) values in order to use the result in your source code. Although there are calculators that can compute such results, you should be able to perform simple arithmetic operations ...

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

Write Great Code, Volume 2, 2nd Edition

Write Great Code, Volume 2, 2nd Edition

Randall Hyde

Publisher Resources

ISBN: 9781098125646