Answered step by step
Verified Expert Solution
Link Copied!

Question

00
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 with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions