Handbook
Glossary
string>number ( str -- n/f )
Factor handbook
»
The language
»
Numbers
»
Converting between numbers and strings
Prev:
>base ( n radix -- str )
Next:
bin> ( str -- n/f )
Vocabulary
math
.
parser
Inputs
str
a
string
Outputs
n/f
a
real
or
f
Word description
Creates a real number from a string representation of a number in base 10.
Outputs
f
if the string does not represent a number.
See also
number>string
Definition
USING:
math.parser.private
;
IN:
math.parser
:
string>number
( str -- n/f )
10
<number-parse>
[
@first-char
]
require-next-digit
;