2

I need to do simple financial calculations on Linux and had been using wcalc for this until I stumbled upon a wrong result caused by floating-point number issues. Is there a calculator (I really would prefer the command-line) that one can rely on for this task? One that doesn't use floats internally?

3
  • 1
    What kind of operations must the calculator support? There's always bc, which is an arbitrary-precision arithmetic calculator. Commented Aug 18, 2019 at 15:29
  • Nothing special. Bc looks promising, but wcalc also calls itself an "arbitrary-precision calculator", But for wcalc, I could not find a statement like bc's "All numbers are represented internally in decimal and all computation is done in decimal" Commented Aug 20, 2019 at 6:12
  • 1
    I haven't looked at the bc source code to see what it's doing, but "decimal" is not the same as "integer". Commented Aug 20, 2019 at 6:16

1 Answer 1

2

As pointed out in the comments to my question, bc doesn't have this problem. Another solution is the the more powerful command line of Qalculate! which seems to fulfill my needs.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.