bin> ( str -- n/f )
Factor handbook » The language » Numbers » Converting between numbers and strings

Prev:string>number ( str -- n/f )
Next:oct> ( str -- n/f )


Vocabulary
math.parser

Inputs
stra string


Outputs
n/fa real or f


Word description
Creates a real number from a string representation of a number in base 2.

Outputs f if the string does not represent a number.

See also
>bin, .b

Definition

: bin> ( str -- n/f ) 2 base> ; inline