Previous Up Next

6.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 8.1.4).

(For rational fractions see Section 10.7.1).

numer('42/12')

or:

getNum('42/12')
     
42           

Previous Up Next