Real To Integer - MapleSim Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : MapleSim : MapleSim Component Library : Signal Blocks : Signal Converters : componentLibrary/signalBlocks/signalConverters/RealToInteger

Real To Integer

Converts a real signal to an integer signal

Description

The Real To Integer component converts the real input, $u$, to the nearest integer value. The equation of this component is

 $y={\begin{array}{cc}⌊u+\frac{1}{2}⌋& u>0\\ ⌈u-\frac{1}{2}⌉& \mathrm{otherwise}\end{array}$

Connections

 Name Description $u$ Connection for the real input signal $y$ Connection for the integer output signal

Variables

 Symbol Units Description $u$ - Real input signal $y$ - Integer output signal

 See Also The components described in this topic are from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam