905-FORMAT-NUMERIC

905-FORMAT-NUMERIC converts a numeric string to the format of the user's locale.

Library STRRTNS
Input

WS-NUMBER-IN (required)

WS-NUMBER-IS-NEGATIVE (required) (Y or N)

WSSTR-DECIMAL-SIZE (required)

CRT-LOCALE (the locale associated with the user)

Output

WS-NUMBER-OUT (right justified, zero-suppressed, with a thousand separator and a decimal separator)

WSDR-ERROR-VAR

Error Number

Invalid Number = 25. This usually means the input was not numeric, included a decimal, or was less than the WSSTR-DECIMAL-SIZE value, or the WSSTR-DECIMAL-SIZE value was less than zero or greater than nine.