Skip to content
Rodrigo Celso de Lima Porto edited this page Jan 13, 2026 · 1 revision

Checks if a given number is an integer.

Syntax

Number.IsInteger(
    value as number
) as logical

Parameters

  • value: A number to check.

Return Value

Returns true if the number is an integer, false otherwise.

Examples

Example 1: Returns true if the number is an integer.

Number.IsInteger(10)

Result

true

Example 2: Returns false if the number is not an integer.

Number.IsInteger(10.5)

Result

false

Clone this wiki locally