]> www.ginac.de Git - cln.git/blob - src/real/conv/cl_F_from_R_f.cc
2006-04-25 Bruno Haible <bruno@clisp.org>
[cln.git] / src / real / conv / cl_F_from_R_f.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 #include "cln/float.h"
14 #include "cl_F.h"
15
16 namespace cln {
17
18 const cl_F cl_float (const cl_R& x, float_format_t f)
19 {
20         floatformatcase((uintC)f
21         ,       return cl_R_to_SF(x);
22         ,       return cl_R_to_FF(x);
23         ,       return cl_R_to_DF(x);
24         ,       return cl_R_to_LF(x,len);
25         );
26 }
27
28 }  // namespace cln