Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

User Commands (a - b) bc(1)
All for statements must have all three expressions.
The quit statement is interpreted immediately, not when bc is evaluating statements.
EXAMPLES
When you enter bc expressions directly from the keyboard, press the End-of-File key sequence to
end the bc session and return to the shell command line.
1. To use bc as a calculator, proceed as follows:
Enter:
bc
1/4
The system responds as follows:
0
Enter:
scale = 1 /* Keep 1 decimal place */
1/4
The system responds as follows:
0.2
Enter:
scale = 3 /* Keep 3 decimal places */
1/4
The system responds as follows:
0.250
Enter:
16+63/5
The system responds as follows:
28.600
Enter:
(16+63)/5
The system responds as follows:
15.800
Enter:
71/6
The system responds as follows:
11.833
527188-003 Hewlett-Packard Company 133