Is there a C++ equivalent to Java's BigDecimal?

后端 未结 8 1819
逝去的感伤
逝去的感伤 2020-11-27 19:42

I\'m looking for a C++ class that can do decimal floating point arithmetic. Looking through http://speleotrove.com/decimal/ there are links to all sorts of classes that peop

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 20:25

    If you need to do operations with HUGE decimal values I would suggest you to use http://gmplib.org/ library. I've used it a lot with C and C++.

提交回复
热议问题