1. Find the binary floating-point representation and the machine representation in IEEE double precision format for the number 12.70 by hand. Show the complete working of this problem
12.7 in simple binary => 1100.1011001100110011001100110011001100110011001100110 so, 12.7 in normal binary is 1100.1011001100110011001100110011001100110011001100110 => 1.1001011001100110011001100110011001100110011001100110 * 2^3 double precision: -------------------- sign bit is 0(+ve) exp bits are (1023+3=130) => 10000000010 frac bits are 1001011001100110011001100110011001100110011001100110 so, 12.7 in double-precision format is 0 10000000010 1001011001100110011001100110011001100110011001100110 in hexadecimal it is 0x4029666666666666
Get Answers For Free
Most questions answered within 1 hours.