	Dingue Calculator v 0.1.8
	===================
Written by Fredledingue
fredledingo@yahoo.com
________________________________

FEATURES:

-A simple, yet full featured calculator and unit convertor.
-Convert many units to many units.
-Use of x,y and z variables.
-See the operation you are typing and re-edit it before calculating the result.
(With the default calculator, the former number disapear and the calculation is 
processed immediately after an arithmetic operator is entered, preventing 
checking and editing complex operations.)
-Switch back to the previous operations to re-edit them
-See a full list of the operations that you have been doing
-Save the operations and the results in a text file
-Calculate percents of a certain number or how many percent this number is in another one
-Gives value of Pi
-Use "V" sign for square root, visualy closer to classic math, also works without parenthesis.
-Cos(X) Sin(X) Tan(X) etc works with or without parenthesis.
-Intuitive, customable, skinable HTA interface
________________________________

SOFTWARE REQUIREMENT
	Windows (all versions possibly)

Windows 98 only:
	Windows Script 5.6 (If you see an error message, please download it from:
http://www.microsoft.com/downloads/details.aspx?FamilyId=0A8A18F6-249C-4A72-BFCF-FC6AF26DC390&displaylang=en
or
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp )
________________________________

INSTALLATION

-There is no installer: Extract all the files to the directory where it suits you best (no further installation necessary).

			VERY IMPORTANT: 

	On Windows VISTA you cannot install this program in  "Program Files" or in "Windows" or one of their subfolder.
	I recommand to install it inside the "Public" or in one of the user's "Document" folder.

	On w98, you can install it wherever you want. 

	On Xp avoids the "Windows" folder. The best is still to follow the rule for Vista.


-To run the program double-click "Calculator*.hta". (The asterisk represent the program version)

-If you want, create manualy a shortcut to your desktop or to the quick launch linking to this file.
To do that, drag and drop the file by pressing the right-click mouse button. By dropping the file, select "create shortcut here".

________________________________

HOW TO USE?

Doubleclic on Calculator*.hta

Then type in the input box the arithmetic operation you want to do, for example:

12+25 

...or a more complicated one:

123/((12*5.32*1)+V3*4V6000)+0.12*Cos12-pi

...then hit the "ENTER" key or click "Calculate"!

________________________________

OPTIONS

Click the "Options" button, then click "OK" or "Minimalist view" to get the smallest window possible.
While under minimalist view, click the "..." button to return to the option table.

Show convertions unit lists and buttons
	(Useful for finding the right unit symbol when doing conversions. Conversions work also when this option is disabled)

Show scientific operators such as Cosinus, Tangent etc
	(If you never use them, uncheck this option)

Show simple operators such as +, - , V etc
	(They are on your keyboard or very simple to type, so in fact you don't realy need these buttons. You will notice that I didn't even bother designing a number pad - that's the originality of this calculator! -)

Show computer interpretation string
	(Usualy, you don't need this. It shows how the computer has interprated what you have written with the intiutive interface. It's useful to debug errors or see what happened when the result looks very wierd. It can be also useful when doing important works and check if the formula entered had been properly written. Interpretated strings are also valid formulas and even recomanded.)

Show the mathematic operation that had been done
	(Shows the formula which gave the curent result)

Show list of previous operations
	(Shows all the operations you have done during the session. The list is erased once you close the program. Use the "Save" button to save it in a separate text file)

Show tips
	(To disable once you have read them all...)

Save to folder [button]
	(Allow you to change the default folder where the lists of operations + results are saved when you decide to save them. You can change this folder temporarily by clicking the "Change folder" button after clicking "Save" but the default folder remains unchanged. You can change the default folder only under the option interface or straight in the ini file.)

Note: Window position will be preserved, but not the window size.
Options are saved in the ini file.
________________________________

UNIT CONVERTION 

This is very simple. Just type the usual symbols.
At the end of the formula, type "?" followed by the unit you want to convert to.
Example for converting centimeters into feet:

563cm?ft
will convert 563 centimeters into feet

You can use the conversion within a calculation:
Example:

45m + 2km?mi
will calculate 45 meters + 2 kilometers and give the result in miles

If you don't type ? followed by a unit, the last unit in the formula will be used for the convertion
Example:

45m + 2km
will convert 45 meters + 2 kilometers into kilometers

--------------------
You can compose complex units by using "/" and two or three symbols.
Variations are unlimited as long as you use symbols known by the program.
 
Example: km/s, kw/h, kg/m/s

You can write  and  or simple 2 and 3 to mark them as square and cubic.
Example: m2 and m are both accepted.

Are also accepted the common following symbols: 
mph (mile per hour), mps (mile per second), sqin, cuin, sqft, cuft, sqyd, cuyd, sqmi, cumi
________________________________

SAVING THE RESULTS TO A FILE

There is a "Save" button near the list of previous operations.

If the list of operations is not showing and you don't see this button, click the "Options" button and enable "Show the mathematic operation that had been done". Click "Ok".

Click "Save"

Enter a file name in the white box. Click "Change folder" if necessary.

Click "Save" again.
________________________________

USING THE MINIMALIST INTERFACE
--------------------
Type " pi " to have the value of Pi.
Example:
pi + 1
= 3.1415926536 + 1 = 4.1415926536

--------------------
Type " ^ "  to raise a number to the power of an exponent. 
Example:
4^2
 = 16

--------------------
Type "V" (UPPERCASE!) to get the square root of a number.
Example:
V16
= 4

v16
= Error

If you type "V" without parenthesis, only the first number following "V" will be included in the "V" square root range.
Example:
4+V16+3
 = 4+4+3 = 11

If you type "V" with parenthesis, the string included in the parenthesis will be under the "V" square root range
Example:
4+V(10+6) +2
= 4+V16 + 2 = 4+4+2 = 10

If you type a number before "V", it will give the root power of this number (root power limited to two digits).
Example:
4V256
= 4

4+4V256
= 4+4 = 8

4+4V(200+56)
= 4+4V256 = 4+4 = 8

4+4V256+2 
= 4+4+2 = 10

4+4V(200+56) +2
=4+4V(256)+2 = 4+4+2 = 10

NOTE: In the text returning the formula  "V" will be transformed to a an equivalent form of "^(1/2)" 
and "3V" will be transformed to a an equivalent form of "^(1/3)" etc.

NOTE: You can use "pi" as a root power.
Example: piV253614

You can also use "sqr( )" or "^(1/2)" instead of "V"
Example:

sqr(16)+sqr(25) or 16^(1/2)+25^(1/2) or V16+V25
= 4+5 = 9

--------------------
To count  x "is how many percents of" y:

formatpercent(x/y)

the value for x and y will be asked automaticaly. But you can replace x and y by numbers.

--------------------
Works with or without parenthesis:

Tangent 
Tan(X)

ArcTangent 
Atn(X)

Cosinus 
Cos(X)

Sinus 
Sin(X)

Logarithm 
Log(X)

Returns e (the base of natural logarithms) raised to a power.
Exp(X) 

________________________________

IN PROJECT:

-Adding customized variables
-Adding currencies
-Adding more units
________________________________

HISTORY

v.0.0.3
First public release

v.0.0.4
Added batch processing
The whole script was rewritten for better performance

v.0.0.5
Added setting dialog for default folder and file name to avoid "file not found" error.

v.0.0.6
Added show the list of the operations that you have been doing in real time

v.0.0.7
Added squareroot as "V" as well as "Sqr( )" or "^(1/2)"
Added Pi
Added Help

v.0.0.8
Added unit convertion
Added ini file for settings

v.0.0.9
Added temperature convertion

v.0.1.0
Fixed bug with all units including "in" in their symbol (now, symbol for "inch" is "inch")

v.0.1.1
Remanipulated the whole code mostly for art sake and performance

v.0.1.2
Fixed a bug in temperature conversion which appeared in v.0.1.1. This bug didn't exist in previous verions.
Fixed other minor bug with units conversion.

v.0.1.3
Not released

v.0.1.4
New user input interpretation engine
More reliable and flexible code to allow new parameters easily
Square root uses "V" uppercase only so that "v" lowercase can be used into variables.
Debug errors when the operation entered is invalid or when the program cannot interpretate it correctly.

v.0.1.5
Not released

v.0.1.6
Not released

v.0.1.7
Ported to HTA interface
Removed batch processing (will be back in a future versions)

v.0.1.8
Added use of x and y as variable
Fixed a bug with window repositioning
Interface optimization
Minor code improvements
________________________________
TERM OF USE
	Free for non commercial purpose.
This scripts is under copyright protection.

This script is provided freely and without warranty. 
The author can not be held responsible for damage or loss of data resulting from the direct or indirect use fo this script.

Althought I believe the informations generated by this script are reliable, it's impossible to guarantee that they will always be acurate.

 USE AT YOUR OWN RISK!