Question

In: Computer Science

Represent the decimal number +105.25 as a sign (S), mantissa (M), and exponent (E)

Represent the decimal number +105.25 as a sign (S), mantissa (M), and exponent (E)

Solutions

Expert Solution

Single precision (Sign(s),Mantissa(M),and Exponent(E)):

  • Sign of Mantissa (S)( 0 represents positive 1 represents negative) (1bit)
  • Exponent(E) (127 actual for Single precision) (8 bits)
  • Mantissa(M) (23 bits)

Step 1: Write binary of a decimal mumber

(105.25)10 =(1101001.01)2

Step 2: Write binary number in a power of 2

1.10100101 * 26 (26 because we shift decimal by 6)

(10100101) is calles a normalised mantisa

Sign bit is 0 because number is positive.

Step 3: add 6(power of 2) in actual exponent (127)

127+6=133

Step 4: Conver 133 into binary

(133)10 =(10000101)2

Step 5 : make 23 bit Normalized mantisa by adding extra 0's

  10100101000000000000000

Step 6 : Write Sign, Exponent and mantisa in their format, Format is:

Sign(1bit) Exponent(8bits) Mantisa(23 bits)

(0  10000101   10100101000000000000000)

So,

(+105.25) as a sign (S), mantissa (M), and exponent (E) is (0  10000101   10100101000000000000000)

0  10000101   10100101000000000000000(Answer)


Related Solutions

Recall that a float is stored in the following format: ±sign 1.mantissa • 2^exponent?127 where sign...
Recall that a float is stored in the following format: ±sign 1.mantissa • 2^exponent?127 where sign is 1 bit, exponent is 8 bits, and mantissa is 23 bits. Write a C function that accepts an int parameter and returns a float represented by the bits in the int. The 32-bit integer is organized as 1-bit sign, 8-bit exponent, 23-bit mantissa. For example, 0x3F800000 represents 1.0 because the sign bit is 0, the exponent is 127, and the mantissa is all...
Explain the use of the mantissa and exponent for its representation on a computer. Why is...
Explain the use of the mantissa and exponent for its representation on a computer. Why is it necessary? Explain the terms “normalization”, “hidden bit” and “bias” in the context of floating point number representation.
Decimal value data types such as float and double represent the decimal number as an approximation....
Decimal value data types such as float and double represent the decimal number as an approximation. In other words, float or double arithmetic do not give exact answer but near approximation to the answer. As an example, run the following program and check its result: #include <iostream> using namespace std; int main() { float x= 0.1 * 7; if (x == 0.7) cout<< "TRUE. \n"; else cout<< "FALSE. \n"; return 0; } In some situations, we need our programs to...
if hexadecimal number FF16 represent a signed number in one's compliments, what the decimal representation of...
if hexadecimal number FF16 represent a signed number in one's compliments, what the decimal representation of that number? include the sign for that number with no spaces between the number and sign. for example -3 or +3
if hexadecimal number FA16 represent a signed number in signed magnitude, what the decimal representation of...
if hexadecimal number FA16 represent a signed number in signed magnitude, what the decimal representation of that number? include the sign for that number with no spaces between the number and sign. for example -3 or +3
"E" means exponent. For example, 1 E 2 means 100, and 1 E 6 means 1,000,000...
"E" means exponent. For example, 1 E 2 means 100, and 1 E 6 means 1,000,000 or 1 million. Numbers adjacent to element symbols are subscripts in the chemical formulas that follow, whereas isolated numbers are chemical equation coefficients. Cl2(g) + 2 NaOH(aq) → NaOCl(aq) + NaCl(aq) + H2O(l) What minimum volume of chlorine gas at 101.4 kPa and 18.0 °C must be used to react with all the sodium hydroxide in 3525 L of 12.5 M NaOH? A. 2.10...
2. a) Represent the decimal value 47.375 as a single precision IEEE floating point number. Give...
2. a) Represent the decimal value 47.375 as a single precision IEEE floating point number. Give your answer in hexadecimal and show your work. b) Represent the decimal value 47.375 as a double precision IEEE floating point number. Give your answer in hexadecimal and show your work.
6 – Assuming single precision IEEE 754 format, what decimal number is represent by the following...
6 – Assuming single precision IEEE 754 format, what decimal number is represent by the following 32-bit binary word? 1 10001000 10010000000000000000000
A 5.17-g bullet is moving horizontally with a velocity of +369 m/s, where the sign +...
A 5.17-g bullet is moving horizontally with a velocity of +369 m/s, where the sign + indicates that it is moving to the right (see part a of the drawing). The bullet is approaching two blocks resting on a horizontal frictionless surface. Air resistance is negligible. The bullet passes completely through the first block (an inelastic collision) and embeds itself in the second one, as indicated in part b. Note that both blocks are moving after the collision with the...
A 4.80-g bullet is moving horizontally with a velocity of +357 m/s, where the sign +...
A 4.80-g bullet is moving horizontally with a velocity of +357 m/s, where the sign + indicates that it is moving to the right (see part a of the drawing). The bullet is approaching two blocks resting on a horizontal frictionless surface. Air resistance is negligible. The bullet passes completely through the first block (an inelastic collision) and embeds itself in the second one, as indicated in part b. Note that both blocks are moving after the collision with the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT