ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   13 Characters   13.2 Dictionary of Characters

13.2.10 digit-char Function

digit-char weight &optional radix    char

Arguments and Values:
weight - a non-negative integer.

radix - a radix. The default is 10.

char - a character or false.

If weight is less than radix, digit-char returns a character which has that weight when considered as a digit in the specified radix. If the resulting character is to be an alphabetic1 character, it will be an uppercase character.

If weight is greater than or equal to radix, digit-char returns false.

 (digit-char 0)  #\0
 (digit-char 10 11)  #\A
 (digit-char 10 10)  false
 (digit-char 7)  #\7
 (digit-char 12)  false
 (digit-char 12 16)  #\C  ;not #\c
 (digit-char 6 2)  false
 (digit-char 1 2)  #\1

See Also:
digit-char-p, graphic-char-p, Section 2.1 Character Syntax


Allegro CL Implementation Details:

Home Previous Up Next Table of Contents Index
© Franz Inc. All Rights Reserved - File last updated 2022-07-25