This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home. For a version of this page that may be more recent, see PrefixedStringToNumber in WG2's repo for R7RS-large.


2014-12-28 10:32:56

I tested (string->number "#x10") against my usual test suite.

Racket, Gauche, MIT, Gambit, Chicken (with or without the numbers egg), Scheme48/scsh, Guile, SISC, Chibi, Chez, SCM, Ikarus/Vicare, Larceny, Ypsilon, Mosh, IronScheme, NexJ, STklos, TinyScheme, S7, Rep, Elk, UMB, SXI, Sizzle, Spark, Inlab, Owl Lisp, Scheme 9, Sagittarius all return 16.

Bigloo, Kawa, KSi, SigScheme, Dream, BDC, XLisp, Schemik, VX return #f.

Shoe, Oaklisp, MScheme, Bus don't support string->number.