What's bigger than a double?

前端 未结 8 697
甜味超标
甜味超标 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:24

    You can use GNU MP. Its floating-point functions have unlimited mantissa and 32-bit or 64-bit (depending on the native word size) exponent. It also comes with a C++ wrapper.

    0 讨论(0)
  • 2021-01-07 17:25

    long long double only some cpus will allow you to use it though...

    0 讨论(0)
提交回复
热议问题