.Buildings.Controls.OBC.CDL.Reals.Round

Information

Block that outputs the input after rounding it to n digits.

For example,

Hence, the block outputs

    y = floor(u*(10^n) + 0.5)/(10^n)  for  u > 0,
    y = ceil(u*(10^n) - 0.5)/(10^n)   for  u < 0.

Revisions


Generated at 2025-01-31T19:25:52Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos