>base ( n radix -- str )
Factor handbook » The language » Numbers » Converting between numbers and strings

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


Vocabulary
math.parser

Inputs
na real
radixan integer between 2 and 16


Outputs
stra string


Word description
Converts a real number into a string representation using the given radix. If the number is a float, the radix can be either base 10 or base 16.

See also
base>

Definition

GENERIC#: >base 1 ( n radix -- str )


Methods