Download Help (Windows Only) |

**Owning Palette: **Numeric Functions.

**Requires: **FPGA IP Builder. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the Conversion functions to convert data types.

Note This palette is specific to the FPGA IP Builder and contains a subset of the VIs and functions that are on this palette when you edit a host VI. |

Refer to the Conversion Palette Details topic for information about restrictions related to the objects on this palette.

Palette Object | Description |
---|---|

Boolean Array To Number | Converts a Boolean array to an integer or a fixed-point number by interpreting the array as the binary representation of the number. If the number is signed, LabVIEW interprets the array as the two's complement of the binary representation of the number. The first element of the array corresponds to the least significant bit in the number. |

Boolean To (0,1) | Converts a Boolean FALSE or TRUE value to a 16-bit integer with a value of 0 or 1, respectively. |

Number To Boolean Array | Converts an integer or fixed-point number to a Boolean array. If you wire an integer to number, Boolean array returns an array of 8, 16, 32, or 64 elements, depending on the number of bits in the integer. If you wire a fixed-point number to number, the size of the array that Boolean array returns equals the word length of the fixed-point number. The 0th element of the array corresponds to the least significant bit of the two's complement of the binary representation of the integer. |

To Byte Integer | Converts a number to an 8-bit integer in the range -128 to 127. |

To Fixed-Point | Converts any non-complex number to fixed-point representation. |

To Long Integer | 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. |

To Quad Integer | Converts a number to a 64-bit integer in the range –(2^63) to (2^63)–1. |

To Single Precision Float | Converts a number to a single-precision, floating-point number. |

To Unsigned Byte Integer | Converts a number to an 8-bit unsigned integer in the range 0 to 255. |

To Unsigned Long Integer | Converts a number to a 32-bit unsigned integer in the range 0 to (2^32)–1. |

To Unsigned Quad Integer | Converts a number to a 64-bit unsigned integer in the range 0 to (2^64)–1. |

To Unsigned Word Integer | Converts a number to a 16-bit unsigned integer in the range 0 to 65,535. |

To Word Integer | Converts a number to a 16-bit integer in the range –32,768 to 32,767. |