blockRealToInteger
Convert Real to Integer signal
Information
Block that outputs y
as the nearest integer value of the input u.
The block outputs
y = integer( floor( u + 0.5 ) ) if u > 0,
y = integer( ceil ( u - 0.5 ) ) otherwise.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Interfaces.RealInput | u | Real signal to be converted to an Integer signal | |
| Buildings.Controls.OBC.CDL.Interfaces.IntegerOutput | y | Converted input signal as an Integer |
Revisions
-
January 3, 2017, by Michael Wetter:
First implementation, based on the implementation of the Modelica Standard Library.