>bignum ( x -- n )
Factor documentation > Factor handbook > The language > Numbers > Integers
Prev:>integer ( x -- n )


Vocabulary
math

Inputs and outputs
xa real
na 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 ;