What is the difference between float and double?

前端 未结 13 744
悲哀的现实
悲哀的现实 2020-11-22 06:00

I\'ve read about the difference between double precision and single precision. However, in most cases, float and double seem to be interchangeable,

13条回答
  •  醉话见心
    2020-11-22 06:17

    • A double is 64 and single precision (float) is 32 bits.
    • The double has a bigger mantissa (the integer bits of the real number).
    • Any inaccuracies will be smaller in the double.

提交回复
热议问题