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

int

int( 
g_value
) 
=> x_result

Description

Rounds off the number value to the nearest integer. The int function works as an overloadable arithmetic operator adopted from DFII to the SKILL Core language. The argument (g_value) is specified on the number class (numberp arguments).

Arguments

g_value

Specifies the number value you want to round off.

Value Returned

x_result

The nearest integer

Examples

int(2.7)
=>2
int(.7)

=>0

Related Topics

Arithmetic Functions


Return to top
 ⠀
X