Round Toward +Infinity Function
- Updated2025-01-28
- 2 minute(s) read
Round Toward +Infinity Function
Rounds the input to the next highest integer.
For example, if the input is 3.1, the result is 4. If the input is –3.1, the result is –3. The connector pane displays the default data types for this polymorphic function.

Inputs/Outputs
![]() x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on. ![]() ceil(x): smallest int >= x is the resulting highest integer, closest to x. If the input is a time stamp value, the function rounds to the next second. When x is of the form x = a + bi, that is, when x is complex, the function returns a complex number defined by the next highest integers to the real and imaginary parts of x. The following equation defines ceil(x): smallest int >= x: ceil(x) = ceil(a) + i ceil(b) |
FPGA Module Details
The following details apply when you use this object in an FPGA VI.
Single-Cycle Timed Loop | Supported. |
Usage | This function does not support the single-precision floating-point data type. |
Timing | Inside single-cycle Timed Loop--When you use this function inside a single-cycle Timed Loop, the combinatorial logic delay is proportional to the number of bits in x. Outside single-cycle Timed Loop--When you use this function outside a single-cycle Timed Loop, it takes one clock cycle and uses one register. The overflow and rounding modes might impact timing. |
Resources | This function requires FPGA resources proportional to the number of bits in x. The overflow and rounding modes might impact resources. |