Previous Up Next

7.2.3  Numerator of a fraction after simplification

The numer or getNum command finds the numerator of a fraction.

Examples

numer(42/12)

or:

getNum(42/12)
     
7           

To avoid simplification, the argument must be quoted (see Section 9.1.4).

(For rational fractions see Section 11.6.1).

numer('42/12')

or:

getNum('42/12')
     
42           

Previous Up Next