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:
parent
7f8a34d2e1
commit
6ebeebde50
2 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue