Rscript.org
Log in or register a RuneScript account.
RuneScript is currently serving 2,601 channels and 30,576 users.
New to RuneScript? Check out our Introductory Guide! The Calculator RuneScript has a very handy calculator built into it. To use the calculator, prefix a math expression with ` (you can also use !calc <expression>). For instance: <spling> `10+3
<RuneScript> *** [ CALC ]: 10+3 = 13

The calculator also has a couple neat features to go along with it. The most useful feature on the calculator is the ability to reference the exp of levels through a function. To illustrate what this means, I'll give you an example. Suppose I have 25,000 exp in a skill, and I want to know how far that is from level 50. I could find this in the calculator by using the L(x) function, where 99 > x > 1. More simply: <spling> `l(50)-25,000
<RuneScript> *** [ l(50)-25,000 ]: 101333-25000 = 76333

And yes, you can use commas in your calculations, unlike most bots. The bot also supports abbreviated numbers. You can do `1.5m+300k+l(44) and other things like that.

Below is a table of abbreviations and functions of the calculator.
FunctionAbbreviationExample
Thousandxk1k = 1,000
Millionxm1m = 1,000,000
Billionxb1b = 1,000,000,000
Exp. to lvl.L(x)L(99) = 13,034,431
Square Rootsqrt(x)sqrt(25) = 5
Pipipi = 3.141592
Remainder*x%y17%6 = 5
   
* This function displays the remainder of a division. In the labeled example, 17/6, the remainder is 5. In decimal format the answer is 2.8333, in remainder format it's 2r5, and in fraction format it's 2+(5/6).

This command's settings may be changed with !set calc.
The Help Docs are maintained by Cowman_133
Copyright © 2005-2010 RScript.org.