Custom Command
FunctionsMath Functions

$math

Calculates numbers with any mathematically correct quantifier(s) in between.

Usage

$math[10*(2+5)/7*8-2]

e## Usage

$math[Expression;Name1=Value1;Name1=Value2]
Member
9/5/2026
!!exec $math[10*(2+5)/7*8-2]
Custom Command
APP
9/5/2026
78
Member
9/5/2026
!!exec Networth = $math[cash+bank;cash=100;bank=500]
Custom Command
APP
9/5/2026
Networth = 600

Alternatives

$sum, can be used to sum up arguments.

$sub, can be used to subtract arguments.

$multi, can be used to multiply arguments.

$divide, can be used to divide arguments.

Valid Quantifiers

OperatorAssociativityDescription
(...)NoneGrouping (brackets)
!LeftFactorial
^RightExponentiation
+, -, sqrtRightUnary prefix operators
*, /, %LeftMultiplication, division, remainder
+, -LeftAddition, subtraction

Are there any more advanced functions?

There are more advanced functions located here.

Function difficulty: Easy

Tags: Maths Calculate

On this page