Search In
• More options...
Find results that contain...
Find results in...

# How to express -608 in normalised mantissa-exponent form?

Assuming you're talking about IEEE 754 floating point numbers (the floating point representation in the majority of programming languages), and you want the 32 bit version (float in C), the representation is

• 1 bit for the sign
• 8 bits for the exponent
• 23 bits for the mantissa

They are all represented in binary, which means that the normalised mantissa has the form 1.xxxxx..., so that 1 is implicit, and not represented in the number directly.

• The sign bit will be 1, because it's negative.
• The exponent will be 9 = 000010012 because the largest power of 2 ≤608 is 512 = 29
• For the mantissa, 608 = 512 + 64 + 32 = 29 + 26 + 25 = 10011000002. We drop the leading 1, because that is implied, so the mantissa becomes 001100000, and is then right padded with 0 (to fill the decimal places)

The resulting number is 1 00001001 001100000000000000000002, representing -1.0011000002 × 29 = -1.187510 × 29 = -1.1875 × 512 = -608.

(Notation: 1012 means the binary number 101, which is 5 in decimal (510)),

## Recommended Posts

Posted · Original PosterOP

Does anyone know how to express -608 in normalised mantissa-exponent form?

I also would like to see how it is done as I don't know how to get the answers.

Thank you.

##### Share on other sites

What format are you using?

##### Share on other sites

Assuming you're talking about IEEE 754 floating point numbers (the floating point representation in the majority of programming languages), and you want the 32 bit version (float in C), the representation is

• 1 bit for the sign
• 8 bits for the exponent
• 23 bits for the mantissa

They are all represented in binary, which means that the normalised mantissa has the form 1.xxxxx..., so that 1 is implicit, and not represented in the number directly.

• The sign bit will be 1, because it's negative.
• The exponent will be 9 = 000010012 because the largest power of 2 ≤608 is 512 = 29
• For the mantissa, 608 = 512 + 64 + 32 = 29 + 26 + 25 = 10011000002. We drop the leading 1, because that is implied, so the mantissa becomes 001100000, and is then right padded with 0 (to fill the decimal places)

The resulting number is 1 00001001 001100000000000000000002, representing -1.0011000002 × 29 = -1.187510 × 29 = -1.1875 × 512 = -608.

(Notation: 1012 means the binary number 101, which is 5 in decimal (510)),

HTTP/2 203

##### Share on other sites
41 minutes ago, colonel_mortis said:

Assuming you're talking about IEEE 754 floating point numbers (the floating point representation in the majority of programming languages), and you want the 32 bit version (float in C), the representation is

• 1 bit for the sign
• 8 bits for the exponent
• 23 bits for the mantissa

They are all represented in binary, which means that the normalised mantissa has the form 1.xxxxx..., so that 1 is implicit, and not represented in the number directly.

• The sign bit will be 1, because it's negative.
• The exponent will be 9 = 000010012 because the largest power of 2 ≤608 is 512 = 29
• For the mantissa, 608 = 512 + 64 + 32 = 29 + 26 + 25 = 10011000002. We drop the leading 1, because that is implied, so the mantissa becomes 001100000, and is then right padded with 0 (to fill the decimal places)

The resulting number is 1 00001001 001100000000000000000002, representing -1.0011000002 × 29 = -1.187510 × 29 = -1.1875 × 512 = -608.

(Notation: 1012 means the binary number 101, which is 5 in decimal (510)),

Don't forget to quote or mention me

Primary PC:

Spoiler

CPU: I5-8600k 5.0ghz

GPU: GTX 1070 ti EVGA SC Gaming

RAM: 2x8 3333 mhz DDR4 Trident Z

MOBO: MSI Gaming Pro Carbon AC

HDD: 1 TB 7200 RPM Seagate Baracudda, 1 TB 5400 RPM Samsung Spinpoint HD103SI

SSD: Samsung 860 EVO 500 GB

Case: Cooler Master Masterbox Lite 5 RGB (modified)

PSU: Seasonic Focus GX650

Consoles:

Spoiler

PS4 Slim Glacier White 500 GB

PS4 FTP Special Edition 500 GB

PS3 Super Slim 500 GB

PS2 OG

Xbox OG

DS Lite White

DS Lite Black/blue

DS Lite Blue

DSI XL Orange

PS Vita v2

Wii