up previous next

Numerators and Denominators for Rational Numbers

If F is a variable holding a fraction, then F.Num and F.Den are the numerator and denominator, respectively. The functions Num and Den, respectively, return the same.

example

    
F := 3/5;
F.Num;
3
-------------------------------
F.Den;
5
-------------------------------
Den(F);
5
-------------------------------
1.75;
7/4
-------------------------------
It.Num;
7
-------------------------------