Skip to content

Commit 329fe2f

Browse files
committed
WIP: found a bug in fixed format to_string for double-double
1 parent df6783a commit 329fe2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/universal/number/dd/dd_impl.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ class dd {
612612
}
613613

614614
s[precision] = 0; // add termination null
615-
}
615+
}
616616

617617
void append_exponent(std::string& str, int e) const {
618618
str += (e < 0 ? '-' : '+');

static/dd/api/api.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ namespace sw {
107107
dd u = ulp(from);
108108
std::cout << "ulp(" << std::scientific << std::setprecision(0) << from
109109
<< ") gives " << to_binary(u) << " : "
110-
<< /*std::fixed <<*/ std::setprecision(6) << u
110+
<< std::scientific << std::setprecision(6) << u
111111
<< '\n';
112112
}
113113
}

0 commit comments

Comments
 (0)