Important: The information in this document is obsolete and should not be used for new development.
Converting Between Integers and Strings
This section describes routines that allow you to convert between string and numeric representations of numbers. Unless patched by a script system with different rules, these two routines assume that you are using standard numeric token processing, meaning that the Roman script system number processing rules are used.
For routines that make use of the token-processing information that is found in the tokens (
- The
NumToString
procedure converts a long integer value to a string representation of it as a base-10 number.- The
StringToNum
procedure converts a string representation of a base-10 number into a long integer value.
'itl4'
) resource of script systems for converting numbers, see the section "Using Number Format Specification Strings for International Number Formatting," which begins on page 5-94, and the section "Converting Between Strings and Floating-Point Numbers," which begins on page 5-98.
Subtopics
- NumToString
- StringToNum