Macaulay2 Engine
Loading...
Searching...
No Matches

◆ operator>>

std::istream & operator>> ( std::istream & is,
mpreal & v )
friend

Definition at line 1948 of file mpreal.h.

1949{
1950 // TODO: use cout::hexfloat and other flags to setup base
1951 std::string tmp;
1952 is >> tmp;
1953 mpfr_set_str(v.mpfr_ptr(), tmp.c_str(), 10, mpreal::get_default_rnd());
1954 return is;
1955}

References get_default_rnd(), mpfr_ptr(), mpreal(), and operator>>.

Referenced by operator>>.