modelRoundingToNDecimalPlaces

Diagram of RoundingToNDecimalPlaces

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

TypeNameDefaultDescription
Integern1Rounded to n decimal places

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu
Modelica.Blocks.Interfaces.RealOutputy

Components

TypeNameDefaultDescription
Modelica.Blocks.Math.RealToIntegerrealToInteger
Modelica.Blocks.Math.IntegerToRealintegerToReal
Modelica.Blocks.Math.Gaingain
Modelica.Blocks.Math.Gaingain1

Revisions

Aurélie Kaemmerlen 07/2012 - généralisation du modèle à n chiffres après la virgule