Modulo
Description
Output is equal to the remainder of the Euclidean division of the input by the divisor.
Note: this modulo block is using the mathematical definition (using the floor function). The return value is value of the sign of the divisor.
Library
Control > Math
Pins
Name | Description |
---|---|
In | Input |
Out | Output |
Parameters
Name | Description |
---|---|
Divisor | Divisor |
SamplingTime | -none or 0: No sampling. The system will be solved in the Newton loop (default). -auto: Inherit the sampling time of its source device. -Sampling Period: defined in seconds. |