]> www.ginac.de Git - cln.git/blob - src/real/division/cl_R_ffloor12.cc
Use paths relative the `src' directory in the #include directives.
[cln.git] / src / real / division / cl_R_ffloor12.cc
1 // ffloor().
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
14 namespace cln {
15
16 const cl_F ffloor (const cl_R& x, const cl_R& y)
17 {
18 // Methode:
19 // x,y beide rational: floor(x,y), Quotienten in Float umwandeln.
20 // Sonst: ffloor(x/y).
21         if (rationalp(x))
22                 if (rationalp(y)) {
23                         // beides rationale Zahlen
24                         DeclareType(cl_RA,x);
25                         DeclareType(cl_RA,y);
26                         return cl_float(floor1(x,y));
27                 }
28         return ffloor(x/y);
29 }
30
31 }  // namespace cln