The value of a statement that is an expression is printed unless the main operator is an assignment. Either semicolons or new-lines may separate statements. Assignment to scale influences the number of digits to be retained on arithmetic operations in the manner of dc . Assignments to ibase or obase set the input and output number radix respectively. The same letter may be used as an array, a function, and a simple variable simultaneously.
All variables are global to the program.
When using arrays as function arguments or defining them as automatic variables, empty square brackets must fol- low the array name. The output is dc commands that are sent to the standard output. Define the math functions and initialize scale to 20, instead of the default zero. After all cases of file have been read, bc will read the standard input.