Browse Source

math: fix a bug in hex display of reals.

legacy
Sam Hocevar 5 years ago
parent
commit
9a73325d68
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/math/real.cpp

+ 1
- 1
src/math/real.cpp View File

@@ -1628,7 +1628,7 @@ template<> std::string real::xstr() const
std::stringstream ss;
if (is_negative())
ss << '-';
ss << "0x1." << std::hex;
ss << "0x1." << std::hex << std::setfill('0');
for (int i = 0; i < bigit_count(); ++i)
ss << std::setw(8) << m_mantissa[i];
ss << std::dec;


Loading…
Cancel
Save