- Inside Macintosh: Text /
- Chapter 5 - Text Utilities / Text Utilities Reference
- Routines
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.
- 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.
For routines that make use of the token-processing information that is found in the tokens ('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
-
© Apple Computer, Inc.
6 JUL 1996