$enableDecimals

Enables/disables decimals in math functions.

Syntax

$enableDecimals[Enable?]

Note

You can use $round[], $ceil[], $floor[] for work with decimal numbers.

Parameters

  • Enable? (Type: Bool || Flag: Required): Whether to enable decimals in math functions or not, yes means it’s enabled and no means it’s disabled.

Explaination

By default, decimals in math functions (e.g $sum, $sub, $multi, etc) are disabled. The only use for this function is to enable decimals, if you want decimals enabled for math functions in that command.

Example

$nomention
$enableDecimals[yes]
Result: $random[1;5]
!example Result: 3.381
  • Without $enableDecimals[] (or result with $enableDecimals[no]):
!example Result: 3

What is this?

How $random[] works?