integer-to-digit

Convert an integer to the corresponding digit.  If the integer is outside the range a single digit in the specified base can represent, an error is signaled.  Digits for values of 10 or higher are represented with the letters ‘a’ through ‘z’, with ‘a’ for 10 and ‘z’ for 35.

Exported from

Modifiers

sealed

Arguments

digitAn instance of <integer>.
base:An instance of <integer>.  Between 2 and 35, inclusive, representing the radix of the digit to return.  The default base is 10.
uppercase:An instance of <boolean>.  For #t, returns uppercase letters for digits greater than 10, and for #f, lowercase letters.  The default is #f.

Values

digitAn instance of <character>.  The returned digit is an alphanumeric character.
This module contains some handy functions to convert numbers to strings and vice-versa, as well some <character> to <string> conversions.
The class of integers.
The class of boolean values.
The class of characters.