bc.1 (2010 09)
b
bc(1) bc(1)
for(i=1; i<=10; i++) e(i)
WARNINGS
There are currently no && (AND) or ||
(OR) comparisons.
The
for statement must have all three expressions.
quit is interpreted when read, not when executed.
bc’s parser is not robust in the face of input errors. Some simple expression such as 2+2 helps get it back
into phase.
The assignment operators:
=+ =- =* =/ =%
and =ˆ are obsolete. Any occurences of these
operators cause a syntax error with the exception of
=- which is interpreted as = followed by a unary
minus.
Neither entire arrays nor functions can be passed as function parameters.
FILES
/usr/bin/dc desk calculator executable program
/usr/lib/lib.b
mathematical library
SEE ALSO
bs(1), dc(1).
bc tutorial in Number Processing Users Guide
STANDARDS CONFORMANCE
bc: XPG4, POSIX.2
HP-UX 11i Version 3: September 2010 − 3 − Hewlett-Packard Company 3