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

difference

difference( 
n_op1 
n_op2 
[ n_op3 ... ] 
) 
=> n_result

Description

Returns the result of subtracting one or more operands from the first operand. Prefix form of the - arithmetic operator.

Arguments

n_op1

Number from which the others are to be subtracted.

n_op2

Number to subtract.

n_op3

Optional additional numbers to subtract.

Value Returned

n_result

Result of the operation.

Examples

difference(5 4 3 2 1) 
=> -5
difference(-12 13)   
=> -25
difference(12.2 -13)  
=> 25.2

Related Topics

xdifference

Arithmetic Functions


Return to top
 ⠀
X