Skip to main content

NumToStr

Use this function to convert a numeric value to a character string.

You may find this function useful for comparison purposes. For example, suppose a complete account number in your system appears in the format A11234. You can use the NumToStr function to change any numeric values to character strings, so that they can be compared correctly.

The value provided by your system depends on the format of the source item being converted:

Format of Source Value of TargetSymName Example

Character string

Returns the source string

Numeric and an integer

Character string representing the number

If Source is 1234, TargetSymName becomes the character string "1234".

Numeric but not an integer

Number

No specific number of decimals. No zero-padding.

Syntax example:

NUMTOSTR (SymName|Num)

where:

  • SymName is a symbol name.
  • Num is a value.

Syntax example:

NumToStr (1234)

Was this article helpful?

We're sorry to hear that.