$numberHasDecimal
Returns `true` if the number has a decimal in it. Otherwise, function will return `false`.

FUNCTION USAGE

  • $numberHasDecimal[input]

Properties:

input - The content the function will look thru to determine if it is a number with a decimal.

Example 1: Output = false

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

Example 2: Output = true

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

Example 3: Output = false

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