[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Scheme-reports] digit-value
- To: scheme-reports <scheme-reports@x>
- Subject: [Scheme-reports] digit-value
- From: Marc Feeley <feeley@x>
- Date: Sat, 30 Jun 2012 23:56:22 -0400
What is the rationale for digit-value ? Its usefullness seems limited. It could be used to parse decimal numbers and convert them to their numerical value. However, a more general procedure would be useful to parse numbers in any base:
(digit-value #\A) ==> 10
It could be defined for the "digits" 0-9, and a-z (i.e. up to base 36).
Marc
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports