Handbook
Glossary
numerator ( a/b -- a )
Factor handbook
»
The language
»
Numbers
»
Rational numbers
Prev:
ratio
Next:
denominator ( a/b -- b )
Vocabulary
math
Inputs
a/b
a
rational
Outputs
a
an
integer
Word description
Outputs the numerator of a rational number. Acts as the identity on integers.
Definition
IN:
math
GENERIC:
numerator
( a/b -- a )
Methods
USING:
math
;
M:
integer
numerator
;
inline
USING:
accessors
math
;
M:
ratio
numerator
numerator>>
;
inline