3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

Added parameter to display floating point numerals as reals

Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
Christoph M. Wintersteiger 2014-12-28 13:32:34 +00:00
parent 7f8a34d2e1
commit 6ebeebde50
2 changed files with 4 additions and 1 deletions

View file

@ -1223,7 +1223,9 @@ std::string mpf_manager::to_string(mpf const & x) {
std::stringstream ss;
m_mpq_manager.display_decimal(ss, r, x.sbits);
ss << "p" << exponent; // "p" means 2^exp
if (m_mpq_manager.is_int(r))
ss << ".0";
ss << " " << exponent;
res += ss.str();
}
}