Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

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 SourceValue of TargetSymNameExample

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

NUMTOSTR (SymName|Num)

where:

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

Syntax example

NumToStr (1234)

Published:

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 SourceValue of TargetSymNameExample

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

NUMTOSTR (SymName|Num)

where:

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

Syntax example

NumToStr (1234)

For an optimal Community experience, Please view on Desktop