Language Selection

English French German Italian Portuguese Spanish

Command line calculator for Linux, calculate big with bc

Filed under
Software

If you’re a command line freak, you’ve probably use expr for common math calculations but did you know that the bc command allows you to do similar math calculations and is more powerful when it comes to bigger calculations?

The nice thing about bc is that it accepts inputs from files, from standard output and this allows the command line user to pipe data out for quick calculations. The syntax for basic calculation is very similar to Google’s calculator.

Here are some basic examples:




More in Tux Machines

today's leftovers

Leftovers: Gaming

Android Leftovers

Leftovers: OSS