1 | input_string | Input | VSTRING |
2 | length | Input | INT4 |
3 | output_integer | output | INT8 |
5 | fc | Output | FEEDBACK |
The Convert Character String to 64-Bit Integer (CEE4JSTN) API converts a character string representation of an integer to its 64-bit integer equivalent.
None.
The following rules apply to input_string.
The decimal separator is retrieved from the job attributes. The input string is scanned left to right until the decimal point or end of string is reached. Any character to the right of the decimal point will be ignored.
Multiple - and + are allowed. The first sign, starting from right to left will indicate the sign of the input.
Imbedded spaces, "-", "+", "." and "," are valid characters.
For examples of this process, see API Examples.
CEE0000 | The API completed successfully |
Severity: 00 | |
CEE2537 | Intput string contains characters that are not valid |
Severity: 30 | |
CEE2539 | Intput integer is too large or too small |
Severity: 30 | |
CEE9902 | Unexpected user error occurred in &1 |
Severity: 30 |
In the following examples, "." is the decimal separator.
Input | Output |
---|---|
" +241-" | -241 |
" +1 001.23-" | -1001 |
" 537,072.34+ " | 537072 |
Top | ILE CEE APIs | APIs by category |