monday
Expert
- Joined
- Jun 23, 2014
- Messages
- 1,127
- Solutions
- 1
- Reaction score
- 158
I'd like to share with you a calculator which makes calculations on maximum 4 numbers.
Usage
Command:
/cc <formula>
Mathematical operators:
+ addition
- substraction
x and * multiplication
/ division
Examples of use:
/cc 2x2
/cc 2*2
/cc 2+2/2
/cc 2+2-2*2
Tested with
-Cleo 4.1
-Samp Functions 5.1
-MG Functions impossible 4.3
-SA-MP 0.3z R1
Limitations
-4 decimal spaces for fractions. (10/3 will give 3.333 instead of 3.33333333333333333333333333333333333333333333...)
-whole numbers input only (unability to do something like 1.1+1.1)
-no exponentiation/roots
Bugs
I had a crash while testing the dialog box but didn't remember the formula I used to analyse the problem. Please let me know if you have any crash, if anyone posted what exact formula causes the problem it would be great.
Additional info
The result keeps being displayed on the screen for 15 seconds after entering the command.
Source
http://pastebin.com/6QGDjQkt
![5Xyl1rE.jpg](http://i.imgur.com/5Xyl1rE.jpg)
Usage
Command:
/cc <formula>
Mathematical operators:
+ addition
- substraction
x and * multiplication
/ division
Examples of use:
/cc 2x2
/cc 2*2
/cc 2+2/2
/cc 2+2-2*2
Tested with
-Cleo 4.1
-Samp Functions 5.1
-MG Functions impossible 4.3
-SA-MP 0.3z R1
Limitations
-4 decimal spaces for fractions. (10/3 will give 3.333 instead of 3.33333333333333333333333333333333333333333333...)
-whole numbers input only (unability to do something like 1.1+1.1)
-no exponentiation/roots
Bugs
I had a crash while testing the dialog box but didn't remember the formula I used to analyse the problem. Please let me know if you have any crash, if anyone posted what exact formula causes the problem it would be great.
Additional info
The result keeps being displayed on the screen for 15 seconds after entering the command.
Source
http://pastebin.com/6QGDjQkt