Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
b
bc(1) bc(1)
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 Release 11i: December 2000 − 3 − Section 1−−43
___
___