To Byte Integer Function
- Updated2025-07-30
- 2 minute(s) read
Converts a number to an 8-bit integer in the range -128 to 127.
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.
8bit integer
—
8bit integer is of the same data type structure as number. |
This function rounds all floating-point numeric values to the nearest integer. If the fractional part of the floating-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
—
8bit integer
—