Owning Palette: Conversion VIs and Functions
Requires: Base Development System
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.
Add to the block diagram | Find on the palette |
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.