Rev 17970 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 17970 | Rev 17971 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | !endif |
3 | !endif |
4 | slib_author=Bernadette, Perrin-Riou |
4 | slib_author=Bernadette, Perrin-Riou |
5 | 5 | ||
6 | slib_title=Repeating decimal of a rational |
6 | slib_title=Repeating decimal of a rational |
7 | slib_parms=2\ |
7 | slib_parms=2\ |
8 | ,rational |
8 | ,rational number as a fraction of integer numbers\ |
9 | raw,format |
9 | raw,format |
10 | slib_out=return [length of the non-periodic decimal part, length of the periodic pattern],\ |
10 | slib_out=return [length of the non-periodic decimal part, length of the periodic pattern],\ |
11 | [integral part , non-periodic part, periodic pattern] in default format.\ |
11 | [integral part , non-periodic part, periodic pattern] in default format.\ |
12 | If the option is <span class="tt">tex</span> the second item is the formatted number\ |
12 | If the option is <span class="tt">tex</span> the second item is the formatted number\ |
13 | with overlined periodic pattern. |
13 | with overlined periodic pattern. |
- | 14 | !set slib_comment=do not check if the rational number is written as a \ |
|
- | 15 | fraction of integer numbers. |
|
14 | !set slib_example=34/45,tex\ |
16 | !set slib_example=34/45,tex\ |
15 | 34/45\ |
17 | 34/45\ |
16 | 297/670\ |
18 | 297/670\ |
17 | 453/37,tex\ |
19 | 453/37,tex\ |
18 | 453/37\ |
20 | 453/37\ |
19 | 65/12,tex\ |
21 | 65/12,tex\ |
20 | 65/ |
22 | 65/12\ |
- | 23 | 67/66,tex\ |
|
- | 24 | 67/66 |
|
21 | 25 | ||
22 | !exit |
26 | !exit |
23 | 27 | ||
24 | :proc |
28 | :proc |
25 | 29 |