Lab 8 IEEE

docx

School

Algonquin College *

*We aren’t endorsed by this school

Course

8101

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

7

Uploaded by SargentTapir3890

Report
1. Convert the number 7.231410 to IEEE 754 single precision format. a) The decimal to binary conversion Whole: 7 7/2 = 3R1 3/2 = 1R1 1/1 = 1R1 Whole in binary: 111 Fraction: 0.2314 0.2314*2 = 0.4628 0.4628*2 = 0.9256 0.9256*2 =1.8512 0.8512*2 =1.7024 0.7024*2 =1.4048 0.4048*2 =0.8096 0.8096*2 =1.6192 0.6192*2 =1.2384 0.2384*2 =0.4768 0.4768*2 =0.9536 0.9536*2 =1.9072 0.9072*2 =1.8144 0.8144*2 =1.6288 0.6288*2 =1.2576 0.2576*2 =0.5120 0.5120*2 =1.0240 0.0240*2 =0.0480 0.0480*2 =0.0960 0.0960*2 =0.1920 0.1920*2 =0.3840 0.3840*2 =0.7680 0.7680*2 =1.5360 0.5360*2 =1.0720 Fraction in binary: 00111011001111010000011 Answer:111.00111011001111010000011 2 b) How you normalized the number 1.1100111011001111010000011*2^2
c) How you converted it to 8-bit excess-127 notation 2 + 127 = 129 1000 0001 d) How you converted the mantissa/significand to "hidden bit" format 001 1101 1001 1110 1000 0011 e) The sign bit 0 f) Result in binary (32-bits) 0100 0000 1001 1101 1001 1110 1000 0011 g) Result in Hexadecimal. 4 0 9 D 9 E 8 3 16 2. Convert the number 0.3204410 to IEEE 754 single precision format. a) The decimal to binary conversion Decimal 0.32044*2 =0.6488 0.6488*2 =1.2976 0.2976*2 =0.5952 0.5952*2 =1.1904 0.1904*2 =0.3808 0.3808*2 =0.7616 0.7616*2 =1.5232 0.5232*2 =1.0464 0.0464*2 =0.0928 0.0928*2 =0.1856 0.1856*2 =0.3712 0.3712*2 =0.7424 0.7424*2 =1.4848 0.4848*2 =0.9696 0.9696*2 =1.9392
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
0.9392*2 =1.8784 0.8784*2 =1.7568 0.7568*2 =1.5136 0.5136*2 =1.0272 0.0272*2 =0.0544 0.0544*2 =0.1088 0.1088*2 =0.2176 0.2176*2 =0.4352 Answer: 0.01010011000010111110000 2 b) How you normalized the number 1.010011000010111110000* 2 ^ -2 c) How you converted it to 8-bit excess-127 notation -2+127=125 01111101 d) How you converted the mantissa/significand to "hidden bit" format 010 1001 1000 0101 1111 0000 e) The sign bit 0 f) Result in binary (32-bits) 0011 1110 1010 1001 1000 0101 1111 0000 2 g) Result in Hexadecimal. 3 E A 9 8 5 F 0 16
3. Convert the number -3.2910 to IEEE 754 single precision format. a) The decimal to binary conversion Whole: 3 3/2 =1 R 1 1/2 =0 R 1 Whole Binary: 0011 Decimal: 2910 0. 2910*2 =0.5820 0.5820*2 =1.1640 0.1640*2 =0.3280 0.3280*2 =0.6560 0.6560*2 =1.3120 0.3120*2 =0.6240 0.6240*2 =1.2480 0.2480*2 =0.4960 0.4960*2 =0.9920 0.9920*2 =1.9840 0.9840*2 =1.9680 0.9680*2 =1.9360 0.9360*2 =1.8720 0.8720*2 =1.7440 0.7440*2 =1.4880 0.4880*2 =0.9760 0.9760*2 =1.9520 0.9520*2 =1.9040 0.9040*2 =1.8080 0.8080*2 =1.6160 0.6160*2 =1.2320 0.2320*2 =0.4640 0.4640*2 =0.9280 Decimal Binary: 01001010011111101111100 Answer: 11. 01001010011111101111100 2 b) How you normalized the number 1.101001010011111101111100 * 2 ^ 1
c) How you converted it to 8-bit excess-127 notation 1 + 127 1000 0000 d) How you converted the mantissa/significand to "hidden bit" format 010 0101 0011 1111 0111 1100 e) The sign bit 1 f) Result in binary (32-bits) 1100 0000 0010 0101 0011 1111 0111 1100 g) Result in Hexadecimal. C 0 2 5 3 F 7 C 16 4. Convert the number -11210 to IEEE 754 single precision format. a) The decimal to binary conversion 11210/2 =5605 R 0 5605/2 =2802 R 1 2802/2 =1401 R 0 1401/2 =700 R 1 700/2 =350 R 0 350/2 =175 R 0 175/2 =87 R 1 87/2 =43 R 1 43/2 =21 R 1 21/2 =10 R 1 10/2 =5 R 0 5/2 =2 R 1 2/2 =1 R 0 1/2 =0 R 1 Whole binary: 10101111001010 2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
b) How you normalized the number 1.0101111001010 * 2 ^ 13 c) How you converted it to 8-bit excess-127 notation 13+127=140 =1000 1100 d) How you converted the mantissa/significand to "hidden bit" format 000 0000 0000 0000 0000 0000 e) The sign bit 1 f) Result in binary (32-bits) 1100 0110 0000 0000 0000 0000 0000 0000 g) Result in Hexadecimal. C 6 0 0 0 0 0 0 16 Time Spent : 2 hours 7min