What's bigger than a double?

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

    C++ has long double, but it's still quite limited. For good time try GNU's gmp library. You can set up numbers as big as you like, and it's quite fun and hackishly when you use gmp_add instead of a normal +. I'm sure there's a C++ wrapper somewhere.

提交回复
热议问题