]> www.ginac.de Git - cln.git/blob - src/real/conv/cl_F_from_R_def.cc
Fix compilation on CYGWIN:
[cln.git] / src / real / conv / cl_F_from_R_def.cc
1 // cl_float().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/real.h"
8
9
10 // Implementation.
11
12 #include "cl_R.h"
13
14 namespace cln {
15
16 MAYBE_INLINE
17 const cl_F cl_float (const cl_R& x)
18 {
19         if (rationalp(x)) {
20                 DeclareType(cl_RA,x);
21                 return cl_float(x);
22         } else {
23                 DeclareType(cl_F,x);
24                 return x;
25         }
26 }
27
28 }  // namespace cln