To Fixed-Point
- Updated2023-02-17
- 2 minute(s) read
To Fixed-Point
Converts any non-complex number to fixed-point representation.
If you do not wire a value to the fixed-point type input or configure the output settings of this function, the data type of the fixed-point output adapts to the data you wire to the number input. For example, if you wire an 8-bit unsigned integer to the number input, the program returns an 8-bit unsigned fixed-point number with 8 integer bits. This function saturates the number by default if overflow occurs.
Inputs/Outputs

number
Any non-complex number.

fixed-point type
The fixed-point data type to which you want to convert the integer data. The program ignores any data in the constant or control that you wire to fixed-point type.

fixed-point
Is the input data scaled to the requested fixed-point data type.

overflow
A Boolean that describes whether the result of the operation is outside the range of values that the output type can represent.
| True | Overflow occurred.
Note For complex numbers, the output is True if either the real or imaginary parts overflow.
|
| False | Overflow did not occur. |