math.parser.private vocabulary
Factor handbook > Vocabulary index


Summary
math.parser.private vocabulary

Words

Tuple classes
ClassSuperclassSlots
float-parse tupleradix point exponent magnitude
number-parse tuplestr length radix magnitude


Generic words
WordStack effect
(positive>dec)( num -- str )


Primitives
WordStack effect
(format-float)( n fill width precision format locale -- byte-array )


Ordinary words
WordStack effect
(add-digit)( number-parse n digit -- number-parse n' )
(bignum>dec)( num accum -- num' accum )
(bin-float>base)( value-quot n -- str )
(count-digits)( digits n -- digits' )
(fix-float)( str-no-exponent -- newstr )
(fixnum>dec)( num accum -- num' accum )
(next-digit)( i number-parse n digit-quot end-quot -- n/f )
(one-digit)( num accum -- num' accum )
(positive>base)( num radix -- str )
(pow)( base x -- base^x )
(two-digit)( num accum -- num' accum )
->denominator( i number-parse n -- n/f )
->exponent( float-parse i number-parse n -- float-parse' n/f )
->mantissa( i number-parse n -- n/f )
->numerator( i number-parse n -- n/f )
->radix( i number-parse n quot radix -- i number-parse n quot )
->required-mantissa( i number-parse n -- n/f )
<float-parse>( i number-parse n -- float-parse i number-parse n )
<number-parse>( str radix -- i number-parse n )
?add-ratio( m n/f -- m+n/f )
?default-exponent( float-parse n/f -- float-parse' n/f' )
?inc-magnitude( number-parse n -- number-parse' )
?make-float( float-parse n/f -- float/f )
?make-ratio( num denom/f -- ratio/f )
?neg( n/f -- -n/f )
?store-exponent( float-parse n expt/f -- float-parse' n/f )
@abort( i number-parse n x -- f )
@denom-digit( i number-parse n char -- n/f )
@denom-digit-or-punc( i number-parse n char -- n/f )
@denom-first-digit( i number-parse n char -- n/f )
@exponent-digit( float-parse i number-parse n char -- float-parse n/f )
@exponent-digit-or-punc( float-parse i number-parse n char -- float-parse n/f )
@exponent-first-char( float-parse i number-parse n char -- float-parse n/f )
@first-char( i number-parse n char -- n/f )
@first-char-no-radix( i number-parse n char -- n/f )
@mantissa-digit( float-parse i number-parse n char -- float-parse n/f )
@mantissa-digit-or-punc( float-parse i number-parse n char -- float-parse n/f )
@neg-digit( i number-parse n char -- n/f )
@neg-digit-or-punc( i number-parse n char -- n/f )
@neg-first-digit( i number-parse n char -- n/f )
@neg-first-digit-no-radix( i number-parse n char -- n/f )
@num-digit( i number-parse n char -- n/f )
@num-digit-or-punc( i number-parse n char -- n/f )
@pos-digit( i number-parse n char -- n/f )
@pos-digit-or-punc( i number-parse n char -- n/f )
@pos-first-digit( i number-parse n char -- n/f )
@pos-first-digit-no-radix( i number-parse n char -- n/f )
@split( i number-parse n -- n i number-parse' n' )
@split-exponent( i number-parse n -- n i number-parse' n' )
ONES( -- value )
TENS( -- value )
add-digit( i number-parse n digit quot -- n/f )
add-exponent-digit( i number-parse n digit quot -- n/f )
add-mantissa-digit( float-parse i number-parse n digit quot -- float-parse' n/f )
base2-digits( digits radix -- digits' )
base2-magnitude( float-parse -- point )
base2-point( float-parse -- point )
bin-float-expt( mantissa -- str )
bin-float-sign( bits -- str )
bin-float-value( str size -- str' )
bin-float>base( n base -- str )
digit-in-radix( number-parse n char -- number-parse n digit ? )
exponent-char?( number-parse n char -- number-parse n char ? )
fix-float( str exponent-char -- newstr )
float>base( n radix -- str )
float>bin-value( mantissa -- str )
float>hex-value( mantissa -- str )
float>oct-value( mantissa -- str )
format-float( n fill width precision format locale -- string )
format-string( format -- format )
inc-magnitude( number-parse -- number-parse' )
inc-point-?dec-magnitude( float-parse n -- float-parse' )
make-float-bin-exponent( float-parse n/f -- float/f )
make-float-dec-exponent( float-parse n/f -- float/f )
mantissa-expt( float -- mantissa expt )
mantissa-expt-normalize( mantissa expt -- mantissa' expt' )
max-magnitude-10( -- value )
max-magnitude-2( -- value )
min-magnitude-10( -- value )
min-magnitude-2( -- value )
next-digit( i number-parse n quot -- n/f )
or-exponent( i number-parse n char quot -- n/f )
or-mantissa->exponent( float-parse i number-parse n char quot -- float-parse n/f )
positive>base( num radix -- str )
pow-until( base x -- base^x )
require-next-digit( i number-parse n quot -- n/f )
store-exponent( float-parse n expt -- float-parse' n )
with-radix-char( i number-parse n radix-quot nonradix-quot -- n/f )


Class predicate words
WordStack effect
float-parse?( object -- ? )
number-parse?( object -- ? )