3 #ifndef _CL_SFLOAT_IO_H
4 #define _CL_SFLOAT_IO_H
6 #include "cln/number_io.h"
7 #include "cln/sfloat.h"
11 inline std::istream& operator>> (std::istream& stream, cl_SF& result)
13 extern cl_read_flags cl_SF_read_flags;
14 extern const cl_F read_float (std::istream&, const cl_read_flags&);
15 result = As(cl_SF)(read_float(stream,cl_SF_read_flags));
19 // The following does strictly the same as the general `fprint' for floats.
20 // It is here only so that people don't need to include <cln/float_io.h>.
21 inline void fprint (std::ostream& stream, const cl_SF& x)
23 extern void print_float (std::ostream& stream, const cl_print_flags& flags, const cl_F& z);
24 extern cl_print_flags default_print_flags;
25 print_float(stream,default_print_flags,x);
27 CL_DEFINE_PRINT_OPERATOR(cl_SF)
31 #endif /* _CL_SFLOAT_IO_H */