focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / den
1 NAME
2     den - denominator of a real number
3
4 SYNOPSIS
5     den(x)
6
7 TYPES
8     x           real
9
10     return      integer
11
12 DESCRIPTION
13     For real x, den(x) returns the denominator of x when x is expressed
14     in lowest terms with positive denominator.  In calc,
15     real values are actually rational values.  Each calc real
16     value can be uniquely expressed as:
17
18         n / d
19
20     where:
21
22         n and d are integers
23         gcd(n,d) == 1
24         d > 0
25
26     The denominator for this n/d is d.
27
28 EXAMPLE
29     > print den(7), den(-1.25), den(121/33)
30     1 4 3
31
32 LIMITS
33     none
34
35 LINK LIBRARY
36     NUMBER *qden(NUMBER *x)
37
38 SEE ALSO
39     num
40