Converts a numeric value to a string that shows the number's decimal format.
A number specifying how many characters to use to express number as a string.
If width is less than the number of characters required, this node uses exactly as many characters as needed. If width is greater than the number of characters required, this node adds a space on the left side of the output string for each additional character.
Default: No value — Exactly as many characters as are needed to represent the number, with no extra padding.
The decimal string that represents number.
number | width | decimal integer string | Comments |
---|---|---|---|
4.6 | 2 | _5 | Floating-point and fixed-point numbers are rounded to integers. |
3.0 | 4 | _ _ _3 | If width is larger than necessary, spaces are added on the left. |
-311 | 3 | -311 | If width is smaller than necessary, decimal integer string is as large as necessary. |
Where This Node Can Run:
Desktop OS: Windows
FPGA: All devices (only within an optimized FPGA VI)
Web Server: Supported in VIs that run in a web application