Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm trying to convert the decimal number -234 to hexadecimal and keep getting stuck. Here's what I'm doing: 1) Write 234 in binary: 1110 1010

I'm trying to convert the decimal number -234 to hexadecimal and keep getting stuck. Here's what I'm doing:

1) Write 234 in binary: 1110 1010

2) Swap 0's and 1's: 0001 0101

3) Add 1: 0001 0110

But -2^4 + 2^2 + 2^1 = -10, not -234. So I get stuck before I can even try converting from binary to hex.

What am I doing wrong?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions