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

后端 未结 8 1799
逝去的感伤
逝去的感伤 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:02

    Probably "MAPM, A Portable Arbitrary Precision Math Library in C" is what you are looking for. It also includes C++ Wrappers:

    http://www.tc.umn.edu/~ringx004/mapm-main.html

提交回复
热议问题