$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]

Member02/20/2024
!!exec $math[10*(2+5)/7*8-2]
Custom Command Bot 02/20/2024
78
Member02/20/2024
!!exec Networth = $math[cash+bank;cash=100;bank=500]
Custom Command Bot 02/20/2024
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.open in new window

Function difficulty: Easy
Tags: Maths Calculate