.Buildings.Controls.OBC.CDL.Conversions.RealToInteger

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.

Revisions


Generated at 2024-05-17T18:15:58Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos