Numerator
Numerator[f]
Numerator[f] gives the numerator of fraction f. f can be written in any form, including simple fractions, mixed fractions, or as a division. If f is a mixed fraction, it will be treated as the equivalent aggregated fraction.
| Example | in | out |
|---|---|---|
The numerator of the division 2/3. |
Numerator[ 2/3 ] |
2 |
The numerator of the mixed fraction Rational[-1,2,3,4]. |
Numerator[ Rational[-1,2,3,4] ] |
-11 |
The numerator of x, where x is defined as 2/6 in the script. |
Numerator[x] |
2 |