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

zerop

zerop( 
g_value 
) 
=> t / nil

Description

Checks whether the specified object is equal to zero. zerop is a predicate function.

Arguments

g_value

A SKILL object that is either a floating-point number or an integer.

Value Returned

t

If g_value is equal to zero.

nil

If g_value is not equal to zero.

Examples

zerop( 0 )
=> t
zerop( 7 )
=> nil

Related Topics

evenp

minusp

oddp

onep

plusp


Return to top
 ⠀
X