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

◆ operator>>() [5/5]

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

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}
static mp_rnd_t get_default_rnd()
Definition mpreal.h:182
::mpfr_ptr mpfr_ptr()
Definition mpreal.h:1765