Page tree
Skip to end of metadata
Go to start of metadata

%Div function


Function
The function returns the result of integer division of the arguments arg1 / arg2.
Declaration
INT %Div(
   UNIVAL in arg1,
   UNIVAL in arg2
 )

Parameters
arg1 Function divident of Int, Real or RelTime type.
arg2 Function divider of Int, Real or RelTime type.

 
 INT _i
 
 _i := 7.0/4.0          ; the assignment operator rounds the value of the variable _i = 2
 _i := %Div(7.0, 4.0)   ; %Div function removes all digits after the decimal point and returns _i = 1 

Note
The function may be used in:
Write a comment…