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

fixp

fixp( 
g_value 
) 
=> t / nil

Description

Checks whether the specified object is an integer, that is, a fixed number.

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

Arguments

g_value

Any SKILL object.

Value Returned

t

If g_value is an integer, a data type whose internal name is fixnum.

nil

If g_value is not an integer.

Examples

fixp(3)     
=> t
fixp(3.0)   
=> nil

Related Topics

fix

fixp

floatp

round

integerp

Arithmetic Functions


Return to top
 ⠀
X