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

numberp

numberp( 
g_value 
) 
=> t / nil

Description

Checks if a data object is a number, that is, either an integer or floating-point number.

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

Arguments

g_value

A data object.

Value Returned

t

The data object is a number.

nil

The data object is not a number.

Examples

numberp( 3 )         
=> t
numberp('isASymbol)  
=> nil
numberp( 3.5)        
=> t

Related Topics

Logical and Relational Functions

null


Return to top
 ⠀
X