User Tools

Site Tools


syntax:functions:isinteger

IsInteger(expression)

Category: Logical function


Description

This function returns TRUE if the result of expression is an integer number. Otherwise, it returns FALSE.


Arguments

ArgumentTypeDescription
expressionExpressionAny expression that could potentially result in an integer.

Return value type: Boolean (TRUE/FALSE)


Examples

isinteger(123) //Returns TRUE
isinteger('123') //Returns FALSE
isinteger(123.45) //Returns FALSE
isinteger(100/2) //Returns TRUE


See also

syntax/functions/isinteger.txt · Last modified: 2021/08/28 20:16 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki