up previous next
Num

numerator
Syntax

Num(N:INT or RAT):INT
Num(N:POLY or RATFUN):POLY


Description
These functions return the numerator and denominator of N. The numerator and denominator can also be found using .Num and .Den (fragile).

Example
  Num(3);
3
-------------------------------
  Num(x/(x+y));
x
-------------------------------
  X := 2/3;
  X.Num; X.Den;
2
-------------------------------
3
-------------------------------


See Also