Ubuntu – Command line calc program and PI constant

calculatorcommand line

I am using calc often (from the terminal) and I was wondering if there is a PI constant in there, predefined, somewhere?

Best Answer

  • If you are talking about calc from the apcalc package the constant Pi is defined like this:


    note, the parentheses are used even though the function does not take any arguments.

    not too clear for the GUI desktop calculator,gcalctool, either, which is: Ctrl+P