digit-value -- r7rs Definition converter;
digit-value (from vonuvoli);Procedure variants:
((character-ascii-numeric) -> (exact-integer-positive-or-zero))
character-ascii-numeric;exact-integer-positive-or-zero;((character-numeric) -> (exact-integer-positive-or-zero))
character-numeric;exact-integer-positive-or-zero;((character) -> (false))
scheme:char -- (scheme char);scheme -- (scheme);(digit-value char)This procedure returns the numeric value (
0to9) of its argument if it is a numeric digit (that is, ifchar-numeric?returns#t), or#fon any other character.(digit-value #\3) ===> 3 (digit-value #\x0664) ===> 4 (digit-value #\x0AE6) ===> 0 (digit-value #\x0EA6) ===> #f
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.