mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-19 14:32:35 +00:00
Fix cpp_bin_float formatting of signed zero.
This commit is contained in:
@@ -670,7 +670,7 @@ std::string cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::s
|
||||
switch(exponent())
|
||||
{
|
||||
case exponent_zero:
|
||||
s = "0";
|
||||
s = sign() ? "-0" : f & std::ios_base::showpos ? "+0" : "0";
|
||||
boost::multiprecision::detail::format_float_string(s, 0, dig, f, true);
|
||||
break;
|
||||
case exponent_nan:
|
||||
|
||||
Reference in New Issue
Block a user