DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Power tools

Using a calculator

You can use the bc program as an online calculator. (bc is actually a programming language, similar to C, which is used for performing mathematical calculations.) To use bc, type bc and press <Enter> -- this brings you into bc. You can now type any arithmetic expression, press <Enter>, and bc evaluates it for you. When you are done using bc, press <Ctrl>D to return to the prompt.

For example, to use bc to add up your work hours, you could type:

   $ bc
   7+6.5+8+8.5+7
   37.0
   <Ctrl>D

Next topic: Clearing the screen
Previous topic: Remembering your appointments

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003