qc
Quick command-line calculator
TLDR
Quick calculator
$ qc "[expression]"
Interactive mode$ qc
Calculate with precision$ qc "[1/3]"
SYNOPSIS
qc [expression]
DESCRIPTION
qc is a lightweight command-line calculator for quickly evaluating mathematical expressions from the terminal. It accepts arithmetic expressions as arguments and prints the result, or runs interactively for multiple calculations in sequence.
The tool supports standard operations including addition, subtraction, multiplication, division, and parentheses for grouping. It provides a faster alternative to launching a full calculator like bc or qalc when only simple arithmetic is needed.
PARAMETERS
EXPRESSION
Mathematical expression.
CAVEATS
Basic calculator. Various implementations exist.
HISTORY
qc provides quick calculations from the command line.
