- operator<<(MP_Float) was missing the approximation when zero.

This commit is contained in:
Sylvain Pion 2001-06-25 12:48:41 +00:00
parent 172494366e
commit fcb044a909
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
4.25 (25 June 01)
- operator<<(MP_Float) was missing the approximation when zero.
4.24 (25 June 01)
- to_interval(Gmpz) is exact when < 2^53.

View File

@ -269,7 +269,7 @@ operator<< (std::ostream & os, const MP_Float &b)
{
// Binary format would be nice and not hard to have too (useful ?).
if (b.is_zero())
return os << 0;
return os << 0 << " [ double approx == " << 0.0 << " ]";
MP_Float::const_iterator i;
int exp = b.min_exp() * log_limb;