Previous Up Next

5.8.4  Denominator of a fraction after simplification : denom getDenom

denom or getDenom takes as argument a fraction and returns the denominator of this fraction after simplification (for rational fractions see 5.29.4).
Input :

denom(42/12)

or :

getDenom(42/12)

Output :

2

To avoid simplifications, the argument must be quoted (for rational fractions see 5.29.3).
Input :

denom(’42/12’)

or :

getDenom(’42/12’)

Output :

12

Previous Up Next