IDIV – Integer division
Block SymbolLicensing group: STANDARD 
                                                                            
Function Description
The IDIV block performs an integer division of two integer input signals,
, where
stands for integer division operator. If the ordinary (non-integer, normal) quotient
of the two operands is an integer number, the result of integer division is the
same. In other cases the resulting value is obtained by trimming the non-integer
quotient’s decimals (i.e. rounding towards lower integer number). In case
,
the output error is set to on and the output n is substituted by
.
This block propagates the signal quality. More information can be found in the 1.4 section.
Input
i1  |   First integer input of the block -9.22E+18 9.22E+18  |   Long (I32)  | 
i2  |   Second integer input of the block -9.22E+18 9.22E+18  |   Long (I32)  | 
Parameter
vtype  |   Numeric type 4  |   Long (I32)  | 
  |           
 
  |   
  | 
nerr  |   Substitute value for an error case 1  |   Long (I32)  | 
Output
n  |   Integer quotient of the inputs  |   Long (I32)  | 
E  |   Error flag - division by zero  |   Bool  | 
  |           
 
  |   
  | 
[Previous] [Back to top] [Up] [Next]
2025 © REX Controls s.r.o., www.rexygen.com