Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
>bignum ( x -- n )
Factor documentation
>
Factor handbook
>
The language
>
Numbers
>
Integers
Prev:
>integer ( x -- n )
Vocabulary
math
Inputs and outputs
x
a
real
n
a
bignum
Word description
Converts a real number to a bignum, with a possible loss of precision.
Definition
IN:
math
GENERIC:
>bignum
( x -- n )
foldable
flushable
Methods
USING:
math
;
M:
bignum
>bignum
;
inline
USING:
math
math.private
;
M:
fixnum
>bignum
fixnum>bignum
;
inline
USING:
math
math.private
;
M:
float
>bignum
float>bignum
;
inline
USING:
math
math.functions
;
M:
ratio
>bignum
>fraction
/i
>bignum
;