RealToInteger

Convert Real to Integer signal

    RealToInteger

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

NameTypeDescriptionIO TypeNumber

u

implicit

Connector of Real input signal

input

1

y

implicit

Connector of Integer output signal

output

1

See Also