Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

integerp

integerp( 
g_obj 
) 
=> t / nil

Description

Checks if an object is an integer. This function is the same as fixp.

The suffix p is usually added to the name of a function to indicate that it is a predicate function.

Arguments

g_obj

Any SKILL object.

Value Returned

t

The given object is an integer.

nil

The given object is not an integer.

Examples

(integerp 123) 
=> t
(integerp "123")
=> nil

Related Topics

fixp


Return to top
 ⠀
X