| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
Math Operations
The Rounding Function block applies a rounding function to the input signal to produce the output signal.
You can select one of the following rounding functions from the Function list:
floor
Rounds each element of the input signal to the nearest integer value towards minus infinity.
ceil
Rounds each element of the input signal to the nearest integer towards positive infinity.
round
Rounds each element of the input signal to the nearest integer.
fix
Rounds each element of the input signal to the nearest integer towards zero.
The name of the selected function appears on the block.
The input signal can be a scalar, vector, or matrix signal having real- or complex-valued elements of type double. The output signal has the same dimensions, data type, and numeric type as the input. Each element of the output signal is the result of applying the selected rounding function to the corresponding element of the input signal.
The Rounding Function block accepts and outputs real signals of type double or single.

The rounding function.
Specify the time interval between samples. To inherit the sample time, set this parameter to -1. See How to Specify the Sample Time in the online documentation for more information.
Direct Feedthrough | Yes |
Sample Time | Inherited from driving block |
Scalar Expansion | N/A |
Dimensionalized | Yes |
Zero Crossing | No |
![]() | Reshape | Saturation | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |