Denominator of a fraction after simplification: denom getDenom

### 5.7.4 Denominator of a fraction after simplification: denom getDenom

The denom command finds the denominator of a fraction.
getDenom is a synonym for denom.

- denom takes one argument:
  r a fraction.
- denom(r) returns the denominator of r after it has been reduced to lowest terms. (For rational expressions see Section 5.32.4).

#### Example

Input:

denom(42/12)

or:

getDenom(42/12)

Output:

2

To avoid simplification, the argument must be quoted (see Section 5.12.4).
(For rational expressions see Section 5.32.3).
Input:

denom(’42/12’)

or:

getDenom(’42/12’)

Output:

12