To Long Integer Function
- Updated2025-07-30
- 2 minute(s) read
Converts a number to a 32-bit integer in the range -(2^ 31) to (2^ 31)-1. This function rounds all floating-point and fixed-point numeric values to the nearest integer.
The connector pane displays the default data types for this polymorphic function.

Inputs/Outputs
number
—
number can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
32bit integer
—
32bit integer is of the same data type structure as number. |
If the fractional part of the floating-point or fixed-point value is .5, the function rounds the value to the nearest even integer. For example, the function rounds 13.5 to 14 and rounds 14.5 to 14.
FPGA Module Details
The following details apply when you use this object in an FPGA VI.
Note The following details are subject to change with each version of the LabVIEW FPGA Module.
| Single-Cycle Timed Loop | Supported. |
| Usage | If you use this function with the single-precision floating-point data type, refer to the Using the Single-Precision Floating-Point Data Type and Deciding Which Data Type to Use in FPGA Designs topics for resource use, latency, and single-cycle Timed Loop support implications. |
| Timing | The Conversion functions require no clock cycles to execute because they do not include internal registers. If you use the Conversion functions with the fixed-point data type, the overflow and rounding modes might impact timing. |
| Resources | The Conversion functions consume no FPGA resources because they are purely wiring operations. If you use the Conversion functions with the fixed-point data type, the overflow and rounding modes might impact resources. |
number
—
32bit integer
—