blockRealToInteger
Convert Real to Integer signal
Extends from Modelica.Blocks.Icons.IntegerBlock (Basic graphical layout of Integer block).
Information
This block computes the output y as 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;
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.RealInput | u | Connector of Real input signal | |
| Interfaces.IntegerOutput | y | Connector of Integer output signal |