$power
Returns the sum of the value of the 1st field to the power of the value of the 2nd field.

FUNCTION USAGE

  • $power[num1;num2]

Properties:

num1 - The main number to be powered. num2 - The power number.

Example 1: 8 to the power of 2 equals 64

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

Example 2: 10 to the power of 3 equals 1000

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