mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-15 07:40:23 +08:00
26d880217b
Usage is -m T, --format=T Where T - is a string containing the floating point format, e.g '%.3f' The test consists of writing a number with 7 fractional digits (default precision display of %f is 6 digits) and have the 7 digits displayed with -m %.7f fpformat.h5 Tested: windows, linux, solaris Note: the output file was generated in linux, it may be possible that platforms other than the ones tested have a different representation of the number
22 lines
543 B
SQL
22 lines
543 B
SQL
#############################
|
|
Expected output for 'h5dump -m %.7f tfpformat.h5'
|
|
#############################
|
|
HDF5 "tfpformat.h5" {
|
|
GROUP "/" {
|
|
DATASET "double" {
|
|
DATATYPE H5T_IEEE_F64LE
|
|
DATASPACE SIMPLE { ( 6 ) / ( 6 ) }
|
|
DATA {
|
|
(0): -0.1234567, 0.1234567, 0.0000000, 0.0000000, 0.0000000, 0.0000000
|
|
}
|
|
}
|
|
DATASET "float" {
|
|
DATATYPE H5T_IEEE_F32LE
|
|
DATASPACE SIMPLE { ( 6 ) / ( 6 ) }
|
|
DATA {
|
|
(0): -0.1234567, 0.1234567, 0.0000000, 0.0000000, 0.0000000, 0.0000000
|
|
}
|
|
}
|
|
}
|
|
}
|