Div

Top  Previous  Next

Prototype

 

IntValue:=IntInput1 Div IntInput2

 

Description

 

It divides two integer numbers and returns the integer part of the quotient.

 

Parameters

 

IntNumber1: integer value is the dividend

 

IntNumber2: integer value is the divisor

 

Returned value

 

intNumber: integer value is the integer part of the quotient.

 

Notes

 

None.

 

Example

 

// It initializes X and Y variable

X:=15;

Y:=2;

 

//It calculates integer part of the quotient

Z:=X div Y;

 

//It logs result

ApplicationLog('The integer part of the quotient between '+IntToStr(X)+' and '+IntToStr(Y)+' is '+IntToStr(Z));