Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%DivI function


Function
The function returns the result of an integer division of the arguments arg1 / arg2.
Declaration


Blok kódu
languageesl
themeConfluence
INT %DivI(
   UNIVAL in arg1,
   INT in arg2
 )


Parameters


arg1Function dividend of Int, Real or RelTime type.
arg2Function divisor of Int type.


 



Blok kódu
languageesl
themeRDark
 INT _i
 
 _i := 7.1/4.0          ; the assignment operator rounds the value of the variable _i = 2
 _i := %DivI(7.1, 4.0)   ; %DivI function removes all digits after the decimal point and returns _i = 1 


Note
The function may be used in: