A String Mathematical Calculator

Category:
Dates and Math
Type:
Modules
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
This is a calculator that calculates using strings, which could handle up to 2 billion characters per number. The application demonstrates the four basic mathematical operations, implementing the ordinary way of resolving numbers being a string, not zeros and ones in memory. The calculator does the basic operations without counting the negative and positive sign, so, when implementing, the sign of the result depends on the two numbers and their signs (e.g. positive * minus = minus: Sign of the resulted number). Of course the result may include the negative sign when X < Y. Be sure to read the comments regarding division.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download stringmathematica.zip