HP-UX Reference (11i v2 03/08) - 1 User Commands A-M (vol 1)

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
Section 146 Hewlett-Packard Company 3 HP-UX 11i Version 2: August 2003