To Unsigned Byte Integer Function
- Updated2025-01-28
- 2 minute(s) read
To Unsigned Byte Integer Function
Converts a number to an 8-bit unsigned integer in the range 0 to 255.
The connector pane displays the default data types for this polymorphic function.

Inputs/Outputs
![]() number can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on. ![]() unsigned 8bit integer is of the same data type structure as number. |
This function rounds all floating-point and fixed-point numeric values to the nearest integer. If the fractional part of the 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.
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. |