RealToIntegerConvert Real to Integer signal |
This information is part of the Modelica Standard Library maintained by the Modelica Association.
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;
u |
Type: RealInput Description: Connector of Real input signal |
|
---|---|---|
y |
Type: IntegerOutput Description: Connector of Integer output signal |
Modelica.Blocks.Examples Demonstrates the usage of blocks from Modelica.Blocks.MathInteger |
Modelica.Blocks.Sources Generate an Integer output signal based on a table matrix with [time, yi] values |