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

TypeNameDefaultDescription
Interfaces.RealInputuConnector of Real input signal
Interfaces.IntegerOutputyConnector of Integer output signal