RealToInteger
Convert Real to Integer signal
![]()
Library
Modelica/Blocks/Math
Description
This block computes the output yas nearest integer value of the input u:
y = integer( floor( u + 0.5 ) ) for u > 0;y = integer( ceil ( u - 0.5 ) ) for u < 0;
Ports
| Name | Type | Description | IO Type | Number |
|---|---|---|---|---|
u | implicit | Connector of Real input signal | input | 1 |
y | implicit | Connector of Integer output signal | output | 1 |