SET-NUMERIC-FORMAT( ) method

Sets the NUMERIC-SEPARATOR and NUMERIC-DECIMAL-POINT attributes simultaneously.

Return type: LOGICAL

Applies to: SESSION system handle

Syntax

SET-NUMERIC-FORMAT ( separator , decimal-point )
separator
A CHARACTER expression that represents, in formatted text, a number's thousands separator.

The thousands separator cannot be represented by any of the following:

  • The characters: B C D R Z z 0 1 2 3 4 5 6 7 8 9 + - < > ( ) * ?
    Note: The space character is allowed.
  • Any multi-byte character
decimal-point
A CHARACTER expression that represents, in formatted text, a number's decimal point.

The decimal point cannot be represented by any of the following:

  • The characters: B C D R Z z 0 1 2 3 4 5 6 7 8 9 + - < > ( ) * ?
  • The space character
  • Any multi-byte character

SET-NUMERIC-FORMAT( ) returns TRUE if the operation is successful.

Note: The values set by the SET-NUMERIC-FORMAT( ) method override the values set by the Thousands Separator (-numsep) and Fractional Separator (-numdec) startup parameters.