Skip to content

Commit 77c913f

Browse files
xal-0vtjnash
andauthored
Update src/rtutils.c
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
1 parent 054ce44 commit 77c913f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/rtutils.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -836,12 +836,7 @@ static size_t jl_static_show_float(JL_STREAM *out, double v,
836836
n += jl_printf(out, "%sInf%s", v < 0 ? "-" : "", size_suffix);
837837
}
838838
else if (vt == jl_float64_type) {
839-
size_t m = snprintf(buf, sizeof buf, "%.17g", v);
840-
jl_uv_puts(out, buf, m);
841-
n += m;
842-
// If there is no decimal point or exponent, disambiguate
843-
if (!strpbrk(buf, ".e"))
844-
jl_printf(out, ".0");
839+
n += jl_printf(buf, sizeof buf, "%#.17g", v);
845840
}
846841
else if (vt == jl_float32_type) {
847842
size_t m = snprintf(buf, sizeof buf, "%.9g", v);

0 commit comments

Comments
 (0)