modelRoundingToNDecimalPlaces
Information
Model to round a real to n decimal places
Hypothesis and equations
none
Bibliography
none
Instructions for use
none
Known limits / Use precautions
none
Validations
Validated model - Bernard Clemençon 06/2012
--------------------------------------------------------------
Licensed by EDF under a 3-clause BSD-license
Copyright © EDF 2009 - 2023
BuildSysPro version 3.6.0
Author : Bernard CLEMENCON, EDF (2012)
--------------------------------------------------------------
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | 1 | Rounded to n decimal places |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u | ||
| Modelica.Blocks.Interfaces.RealOutput | y |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Math.RealToInteger | realToInteger | ||
| Modelica.Blocks.Math.IntegerToReal | integerToReal | ||
| Modelica.Blocks.Math.Gain | gain | ||
| Modelica.Blocks.Math.Gain | gain1 |
Revisions
Aurélie Kaemmerlen 07/2012 - généralisation du modèle à n chiffres après la virgule