27 #include "ioflags.hpp" 34 std::ostream & operator << (std::ostream &s,
const idotprecision& a)
throw()
36 s <<
'[' << SaveOpt << RndDown
37 << a.inf <<
',' << RndUp
38 << a.sup << RestoreOpt
42 std::string & operator << (std::string &s,
const idotprecision& a)
throw()
45 s << SaveOpt << RndDown
49 << a.sup << RestoreOpt;
58 skipeolnflag = inpdotflag =
true;
59 c = skipwhitespacessinglechar (s,
'[');
63 s >> SaveOpt >> RndDown >> a.inf;
65 skipeolnflag = inpdotflag =
true;
66 c = skipwhitespacessinglechar (s,
',');
67 if (inpdotflag) s.putback(c);
69 s >> RndUp >> a.sup >> RestoreOpt;
73 skipeolnflag =
false, inpdotflag =
true;
74 c = skipwhitespaces (s);
75 if (inpdotflag && c !=
']')
89 s = skipwhitespacessinglechar (s,
'[');
90 s >> SaveOpt >> RndDown >> a.inf;
91 s = skipwhitespacessinglechar (s,
',');
92 s >> RndUp >> a.sup >> RestoreOpt;
93 s = skipwhitespaces (s);
118 Inf(b)=rnd(a.inf,RND_DOWN);
119 Sup(b)=rnd(a.sup,RND_UP);
122 interval rnd(
const idotprecision &a)
throw()
131 i_padd(a.inf.ptr(),a.sup.ptr(), *(a_intv*)&b,*(a_intv*)&c);
The Data Type idotprecision.
The namespace cxsc, providing all functionality of the class library C-XSC.
The Scalar Type interval.