]> www.ginac.de Git - cln.git/blobdiff - src/float/conv/cl_F_to_double.cc
Initial revision
[cln.git] / src / float / conv / cl_F_to_double.cc
diff --git a/src/float/conv/cl_F_to_double.cc b/src/float/conv/cl_F_to_double.cc
new file mode 100644 (file)
index 0000000..3852fbf
--- /dev/null
@@ -0,0 +1,26 @@
+// cl_F_to_double().
+
+// General includes.
+#include "cl_sysdep.h"
+
+// Specification.
+#include "cl_float.h"
+
+
+// Implementation.
+
+#include "cl_F.h"
+#include "cl_sfloat.h"
+#include "cl_ffloat.h"
+#include "cl_dfloat.h"
+#include "cl_lfloat.h"
+
+double cl_double_approx (const cl_F& x)
+{
+       floatcase(x
+       ,       return cl_double_approx(x);
+       ,       return cl_double_approx(x);
+       ,       return cl_double_approx(x);
+       ,       return cl_double_approx(x);
+       );
+}