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

xquotient

xquotient( 
x_op1 
x_op2 
[ x_opt3 ] 
) 
=> x_result

Description

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

Arguments

x_op1

Dividend.

x_op2

Divisor.

x_opt3

Optional additional divisors.

Value Returned

x_result

Result of the division.

Examples

xquotient(10 2)   
=> 5
xquotient(-10 -2) 
=> 5

Related Topics

quotient


Return to top
 ⠀
X