modelRound
Example for round function
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This example tests the implementation of Buildings.Utilities.Math.Functions.round for different values of n. Arguments and return values are scale to simplify the show that the scaling for the rounding is implemented correctly.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | ym2 | Function value | |
| Real | ym1 | Function value | |
| Real | y | Function value | |
| Real | y1 | Function value | |
| Real | y2 | Function value |
Revisions
-
October 19, 2020, by Michael Wetter:
First implementation.