]> www.ginac.de Git - cln.git/blob - src/real/division/cl_R_round12.cc
Use paths relative the `src' directory in the #include directives.
[cln.git] / src / real / division / cl_R_round12.cc
1 // round1().
2
3 // General includes.
4 #include "base/cl_sysdep.h"
5
6 // Specification.
7 #include "cln/real.h"
8
9
10 // Implementation.
11
12 #include "real/cl_R.h"
13 #include "cln/rational.h"
14
15 namespace cln {
16
17 const cl_I round1 (const cl_R& x, const cl_R& y)
18 {
19 // Methode:
20 // Beides rationale Zahlen -> round1(x,y).
21 // Sonst: round1(x/y).
22         if (rationalp(x))
23                 if (rationalp(y)) {
24                         DeclareType(cl_RA,x);
25                         DeclareType(cl_RA,y);
26                         return round1(x,y);
27                 }
28         return round1(x/y);
29 }
30
31 }  // namespace cln