How to Install bc in Ubuntu 18.04

Install bc by entering the following commands in the terminal:

sudo apt update
sudo apt install bc


GNU bc arbitrary precision calculator language

GNU bc is an interactive algebraic language with arbitrary precision which follows the POSIX 1003.2 draft standard, with several extensions including multi-character variable names, an `else' statement and full Boolean expressions. GNU bc does not require the separate GNU dc program.


Version: 1.07.1-2

Section: math