Handbook
Glossary
>fixnum ( x -- n )
Factor handbook
»
The language
»
Numbers
»
Integers
Prev:
bignum? ( object -- ? )
Next:
>integer ( x -- n )
Vocabulary
math
Inputs
x
a
real
Outputs
n
a
fixnum
Word description
Converts a real number to a fixnum, with a possible loss of precision and overflow.
Definition
IN:
math
GENERIC:
>fixnum
( x -- n )
foldable
flushable
Methods
USING:
math
math.private
;
M:
bignum
>fixnum
bignum>fixnum
;
inline
USING:
math
;
M:
fixnum
>fixnum
;
inline
USING:
math
math.private
;
M:
float
>fixnum
float>fixnum
;
inline
USING:
math
;
M:
ratio
>fixnum
>fraction
/i
>fixnum
;