What's bigger than a double?

前端 未结 8 803
甜味超标
甜味超标 2021-01-07 16:32

Is there a native c++ variable type that\'s \"bigger\" than a double?
float is 7
double is 15 (of course depending on the compiler)
Is there anything bigger tha

8条回答
  •  [愿得一人]
    2021-01-07 17:18

    C++ has long double, but there is no guarantee that it's any more precise than a plain double. On an x86 platform, usually double is 64 bits, and long double is either 64 or 80 bits (which gives you 19 significant figures, if I remember right).

    Your mileage may vary, especially if you're not on x86.

提交回复
热议问题