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

floatp

floatp( 
g_value 
) 
=> t / nil

Description

Checks whether the specified object is a floating-point number. Same as realp.

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

Arguments

g_value

Any SKILL object.

Value Returned

t

If g_value is a floating-point number, a data type whose internal name is flonum.

nil

If g_value is not a floating-point number.

Examples

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

Related Topics

fix

fixp

floatp

realp

Arithmetic Functions


Return to top
 ⠀
X