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

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 03 June 2005