$calculate

Calculates a math expression.

Syntax

$calculate[Expression]

Parameters

  • Expression (Type: String || Flag: Required): The math expression to solve.

Signs

  • + - Addition.
  • - - Subtraction.
  • / - Division.
  • * - Multiplication.
  • % - Modulo.
  • ** - Power.
  • () - Parentheses you can put equations in.

Example

$nomention
$enableDecimals[yes]
$calculate[$message] 🧠
!example 10+5.9-9 6.9 🧠

How does $enableDecimals[] work?