[FilterScript] Googulator v1
#1

Information

I was pretty bored today and came across a calculator script which could only do basic operations. With a bit of research and some fumbling with the HTTP function and ******'s advanced search tools/built-in calculator, I have created this script. You can do all the basic calculations; adding; subtracting; multiplying; dividing and also (complex) equations via ******, retrieving the result from ******. Since I am no mathematical expert, I haven't fully tested the script with equations, please post here if there are any bugs.

Usage
pawn Код:
/calculate [Equation]

Examples:

/calculate 10 + 5
/calculate (10 + 5) ^ 2
/calculate (10 + 5) * (80 / 10) ^ 2
New in version 2
pawn Код:
/convert [Amount] [From] [To]

Examples:

/convert 100 USD NZD
/convert 100 ms s
/convert 30 days months
/convert 10 cm inches
/convert 1000 GB MB

And many more!
Version 2 also notifies the user of any errors that may have occurred while calculating.

Examples

Код:
/calculate 100 / 0 = Numerical Error
/convert 100 USD COD = Unknown Unit
/convert 100 USD inches = Unit mismatch
Credits

****** - Doing all the hard work that they do.
Zeex - ZCMD
Calgon - Help with HTTP + Moral support + Script name.
Westie - Explode and str_replace
****** - Sscanf

Download

Version 2 (Current)

Pastebin (Source)
Solidfiles (AMX)

Version 1

Pastebin (Source)
Solidfiles (AMX)
Reply


Messages In This Thread
Googulator v2! (Now with unit and currency conversions!) - by JamesC - 07.12.2010, 06:33
Re: Googulator v1 - by __ - 07.12.2010, 06:34
Re: Googulator v1 - by [MWR]Blood - 07.12.2010, 07:16
Re: Googulator v1 - by JamesC - 07.12.2010, 07:26
Re: Googulator v1 - by Grim_ - 07.12.2010, 10:29
Re: Googulator v1 - by alpha500delta - 07.12.2010, 11:01
Re: Googulator v1 - by JamesC - 07.12.2010, 11:11
Re: Googulator v1 - by Mean - 27.12.2010, 14:39
Re: Googulator v1 - by Aleluja - 27.12.2010, 20:02
Re: Googulator v1 - by snac24 - 28.12.2010, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)