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

xplus

xplus( 
x_op1 
x_op2 
[ x_opt3 ] 
) 
=> x_result

Description

Returns the integer result of adding one or more operands to the first operand. xplus is an integer-only arithmetic function while plus can handle integers and floating-point numbers. xplus runs slightly faster than plus in integer arithmetic calculation.

Arguments

x_op1

First operand to be added.

x_op2

Second operand to be added.

x_opt3

Optional additional operands to be added.

Value Returned

x_result

Result of the addition.

Examples

xplus(12 13)   
=> 25
xplus(-12 -13) 
=> -25

Related Topics

plus


Return to top
 ⠀
X