summaryrefslogtreecommitdiffstats
path: root/tools/h5dump.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2000-11-16 17:49:26 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2000-11-16 17:49:26 (GMT)
commit0593d9331414beabdd0d97b3a1e4d4d841b5309f (patch)
treebeb71a2e5b34ac2572be58330d7d306da665adf6 /tools/h5dump.c
parentd197bf4f5209d1927719cc0fb4a2410a6b9930a4 (diff)
downloadhdf5-0593d9331414beabdd0d97b3a1e4d4d841b5309f.zip
hdf5-0593d9331414beabdd0d97b3a1e4d4d841b5309f.tar.gz
hdf5-0593d9331414beabdd0d97b3a1e4d4d841b5309f.tar.bz2
[svn-r2950] Purpose:
Bug fix Description: The output of floating point dumps wasn't necessarily standard. The h5ls utility does it in a better way. Solution: Changed the output parameters from %g to %1.*g and added the appropriate FLT_DIG/DBL_DIG parameter for the `*' in the above. Platforms tested: Linux
Diffstat (limited to 'tools/h5dump.c')
-rw-r--r--tools/h5dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c
index 515e61c..f961555 100644
--- a/tools/h5dump.c
+++ b/tools/h5dump.c
@@ -47,8 +47,8 @@ static h5dump_t dataformat = {
"%lu", /*fmt_ulong*/
NULL, /*fmt_llong*/
NULL, /*fmt_ullong*/
- "%g", /*fmt_double*/
- "%g", /*fmt_float*/
+ "%1.*g", /*fmt_double*/
+ "%1.*g", /*fmt_float*/
0, /*ascii*/
0, /*str_locale*/