《通链参考手册》


Function DIGIT-CHAR

●语法设定:

digit-char weight &optional radix => char

●参数和值:

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 alphabetic[1] 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

●受制于: 无。

●例外情况: 无。

●更多信息:

digit-char-p, graphic-char-p, Section 2.1 (Character Syntax)

●说明:


X3J13设计清单非标准部分,可查下面章节:


◇首页 § ◎章节目录 § □内容索引 § ○符号索引 § △术语表 § ※设计草案