Functionalities
Other
$numberSeparator
Separates the number with a symbol at every thousandth digit in the number. If 2nd field is not defined or left blank, separates with a comma.
Can be used in bot.Status

FUNCTION USAGE

  • $numberSeparator[number]
  • $numberSeparator[number;separator]

Properties:

number - The number. separator - If defined, separate the number at every thousandth digit. If not defined, separates with a comma.

Example 1: Output = 1,000,000

1
bot.Command({
2
name: "test",
3
code: `
4
$numberSeparator[1000000]
5
`})
Copied!

Example 2: Output = 1,000,000

1
bot.Command({
2
name: "test",
3
code: `
4
$numberSeparator[1000000;,]
5
`})
Copied!

Example 3: Output = 1-000-000

1
bot.Command({
2
name: "test",
3
code: `
4
$numberSeparator[1000000;-]
5
`})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: