.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 2024-05-17T18:15:58Z by OpenModelicaOpenModelica 1.22.4 using GenerateDoc.mos