LinuxCommandLibrary

qc

Quick command-line calculator

TLDR

Quick calculator

$ qc "[expression]"
copy
Interactive mode
$ qc
copy
Calculate with precision
$ qc "[1/3]"
copy

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.

SEE ALSO

bc(1), qalc(1), calc(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community