What's the difference between a single precision and double precision floating point operation?

后端 未结 11 851
没有蜡笔的小新
没有蜡笔的小新 2020-12-04 04:21

What is the difference between a single precision floating point operation and double precision floating operation?

I\'m especially interested in practical terms in

11条回答
  •  天涯浪人
    2020-12-04 05:06

    Single precision number uses 32 bits, with the MSB being sign bit, whereas double precision number uses 64bits, MSB being sign bit

    Single precision

    SEEEEEEEEFFFFFFFFFFFFFFFFFFFFFFF.(SIGN+EXPONENT+SIGNIFICAND)

    Double precision:

    SEEEEEEEEEEEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.(SIGN+EXPONENT+SIGNIFICAND)

提交回复
热议问题