Using Simulink | ![]() ![]() |
Library
Description
The Rounding Function block performs common mathematical rounding functions.
You can select one of these functions from the Function list: floor
, ceil
, round
, and fix
. The block output is the result of the function operating on the input or inputs. The Rounding Function block accepts and outputs real- or complex-valued signals of type double
.
The name of the function appears on the block icon.
Use the Rounding Function block instead of the Fcn block when you want Dimensionalized output because the Fcn block can produce only scalar output.
Data Type Support
A Rounding Function block accepts and outputs real signals of type double
.
Parameters and Dialog Box
Characteristics
Direct Feedthrough |
Yes |
Sample Time |
Inherited from driving block |
Scalar Expansion |
N/A |
Dimensionalized |
Yes |
Zero Crossing |
No |
![]() | Reshape | Saturation | ![]() |