string-to-integer

Read a sequence of characters as an integer.  The characters are the digits of the string representation, and must lie between ‘0’ and ‘z’, with a maximum depending on the base.  For example, octal (base 8) digits must be in [0-7], decimal digits must be in [0-9], and hexadecimal digits must be in [0-9] or [a-f].  An error is signaled if this constraint is violated.  (Start negative integers with a ‘-’, so “-36” would become -36.)

Exported from

Modifiers

sealed

Arguments

stringAn instance of <sequence>.  Any <sequence> of <character> objects are acceptable.  This is typically but not necessarily a <string>.
base:An instance of <integer> between 2 and 36, inclusive, denoting the base to read integers in.  An error is signaled if base is not in this range.  Defaults to 10.

Values

integerAn instance of <integer>.
The common-dylan module.
Miscellaneous extensions to the Dylan language.
This module contains some handy functions to convert numbers to strings and vice-versa, as well some <character> to <string> conversions.
The class of collections whose keys are consecutive integers starting from zero.
The class of characters.
The class of sequences with elements that are characters.
The class of integers.