Converts number to a string of decimal digits at least width characters wide or wider if necessary. If number is floating-point or fixed-point, it is rounded to a 64-bit integer before conversion.

The connector pane displays the default data types for this polymorphic function.


icon

Inputs/Outputs

  • ci32.png number —

    number can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.

  • ci16.png width (-) —

    width must be numeric. If unwired, the function uses exactly as many digits as are needed to represent the number, with no extra padding.

  • istr.png decimal integer string —

    decimal integer string is the resulting decimal string.

    The following table shows how the values of number and width affect decimal integer string. In this table, the underline character ( _ ) represents spaces in decimal integer string.

    numberwidthdecimal integer stringComments
    4.62_5Floating-point and fixed-point numbers are rounded to integers.
    3.04_ _ _3If width is larger than needed, spaces are added on the left.
    –3113–311If width is inadequate, decimal integer string is as large as necessary.