summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/h5tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5tools.c b/tools/h5tools.c
index 978f30b..c55c138 100644
--- a/tools/h5tools.c
+++ b/tools/h5tools.c
@@ -712,7 +712,7 @@ h5dump_sprint(h5dump_str_t *str/*in,out*/, const h5dump_t *info,
h5dump_str_append(str, OPT(info->fmt_double, "%g"), tempdouble);
} else if (H5Tequal(type, H5T_NATIVE_FLOAT)) {
memcpy(&tempfloat, vp, sizeof(float));
- h5dump_str_append(str, OPT(info->fmt_double, "g"), tempfloat);
+ h5dump_str_append(str, OPT(info->fmt_float, "%g"), tempfloat);
} else if (info->ascii && (H5Tequal(type, H5T_NATIVE_SCHAR) ||
H5Tequal(type, H5T_NATIVE_UCHAR))) {
if (ESCAPE_HTML == info->str_locale) {