
ICalc v1.00
Copyright (C) 1996 by Ian Prest
All rights reserved.


What is ICalc?
--------------
 ICalc is a small, fast, FREE!, calculator-type program.  How often have you
 wanted to make simple calculations, and not had a calculator handy?  And
 how often have you resorted to starting QBasic or the Windows Calculator
 to make these simple calculations?

 ICalc has two modes - command-line mode and interactive mode.  If you don't
 enter any command-line parameters, ICalc automatically enters interactive
 mode.

 ICalc is very simple, and was written in a couple of hours while I was
 trying to learn how to use YACC.  Some of the code was stolen from HTML-Ed,
 and some was stolen from another project of mine, so I don't have too much
 time invested in it.  So, I've decided to make it freeware.  It's still
 very useful, however; I use it all the time.

How to use ICalc:
-----------------
 From the command-line:

	 ICalc <expression>

	 where <expression> is any mathematical expression recognized by ICalc
	 (whitespace is not allowed on the command line).

 From interactive mode:

	 At the '>' prompt, enter any mathematical expression recognized by ICalc
	 and press enter (whitespace is allowed in interactive mode).  The result
	 will be displayed.

	 To access the command-line history, use the up and down arrows from the
	 ICalc '>' prompt.

	 To exit interactive mode, press enter at a blank '>' prompt.

Recognized Expressions
----------------------
  ICalc recognized the following operators:

	 '+' and '-' for addition and subtraction
	 '*' and '/' for multiplication and division
	 '(' and '[' parentheses (the square brackets are merely for convenience)
	 '%' for the remainder of a division
	 '=' for variable assignment

  A variable name can be any combination of alpha-numeric characters (with
  the exception that it can't start with a number).  Variables are _not_
  case sensitive.

  The special variable "ans" holds the last answer that ICalc gave.

  Examples              ICalc Output
  --------              ------------
	 4+4                   = 8
	 m=3                   = 3
	 6+m                   = 9
	 hello=(4*5)+10        = 30
	 hello+3               = 33
	 7%3                   = 1
	 ans+3                 = 4
	 ans+3                 = 7

Limitations
-----------
 ICalc currently does not handle floating-point math.  It might at some
 point in the future, when/if I feel like adding it.

 I may also, at some point, extend its capabilities to include _infinite
 precision_ floating point math, when/if I feel like porting my infinite
 precision math library to C from either Basic or Pascal.

License & Disclaimer
--------------------
 ICalc (the program) is supplied as is.  Ian Prest (the author) disclaims
 all warranties, expressed or implied, including, and without limitation
 to, the warranties of merchantability and of fitness for any purpose.
 The author assumes no liability for damages, direct or consequential,
 which may result from the use of the program.

 ICalc is a "freeware program."  It is copyrighted, but anyone may use it
 without paying a fee to the author.  Feel free to share it with your
 friends, but please do not give it away altered or as part of another system.

Contacting the Author
---------------------
 Feel free to contact me at ianprest@connect.reach.net.  I cannot provide
 much support for this FREE program, but I will try to help with any problems
 you are having.  Visit my home page at:  http://www.wp.com/ianprest

 I will _not_ spend a lot of time fixing bugs and/or adding new features since
 this is a freeware utility.  Most of my free time is already taken up with
 HTML-Ed (my HTML editor - http://www.wp.com/ianprest/htmled.html) and with
 school-work.  Feel free to make requests, but don't expect anything.


ICalc v1.00
Copyright (C) 1996 by Ian Prest
All rights reserved.


