Equinox Online Help - Language Reference - A to Z

Home

IntStr

Applies to
SyntaxIntStr(NumberExpression [, LengthExpression, FormatExpression])
Action[Function] Returns the specified number as a formatted integer string.
ScopeUsable anywhere
Notes

This function converts NumberExpression into an integer string format; eg 23 becomes "23". FormatExpression (optional) determines the style of the returned string. Possible values of FormatExpression (the default is zero) are:

  • 0 No trailing spaces, leading spaces or zeros, or comma separators are included
  • 1 Leading zeros are included
  • 2 Trailing spaces are included
  • 3 Leading spaces are included
  • +4 Comma separators are included; add this value to one of the above.

LengthExpression is optional, but you must specify it if you need padding with spaces or zeros, and the value must be large enough to fit the number including any comma separators.

CategoryConversions
See Also HexStr, Str
Example

This example converts 1234567 to the string "0001,234,567".

number x

x = 1234567
print IntStr(x, 12, 5)