设浮点数的格式为:阶码4位,包含一位符号位,尾数5位,包含一位符号位,阶码和尾数均用补码表示,则

1个回答

  • 解答第1题:

    .

    x =22/64 =10110b/2^6

    将10110b右移6位:

    x = 0.010110b

    规格化:x =0.10110bx(2^-1)

    [x阶]原 =1001b

    [x阶]反 =1110b

    [x阶]补 =1111b

    [x尾]补 =01011b

    x浮 =1111,01011b

    .

    y = -2.75 = -(2+3/4) = -(10b +0.11b) = -10.11b

    规格化:y = -0.1011bx(2^2)

    [y阶]补 =0010b

    [y尾]原 =11011b

    [y尾]反 =10100b

    [y尾]补 =10101b

    y浮 =0010,10101b

    .