/usr/lib/s9fes/help/string-to-number is in scheme9 2010.11.13-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | R4RS 6.5.6 (string->number string) ==> integer
(string->number string integer) ==> integer
Returns a number of the maximally precise representation expressed
by the given STRING. INTEGER must be an exact integer, either 2, 8,
10, or 16. If supplied, INTEGER is a default radix that may be
overridden by an explicit radix prefix in string (e.g. "#o177").
If INTEGER is not supplied, then the default radix is 10. If STRING
is not a syntactically valid notation for a number, then STRING->NUMBER
returns #F.
(string->number "100") ==> 100
(string->number "100" 16) ==> 256
(string->number "1e2") ==> 100.0
(string->number "1.23") ==> 1.23
(string->number "#i10") ==> 10.0
The S9fES implementation supports base prefixes. It also supports
decimal points, exponent markers, unspecific digits (#), and
exact/inexact prefixes, if real number support is compiled in.
|