Hi All,

I've just discovered the problem with type conversion between C++ native "long double" and H5T_NATIVE_LDOUBLE. On Windows x86_64 machine (Cygwin + GCC) it seems that long double has 128 bits, while H5T_NATIVE_LDOUBLE is treated as "64-bit floating point" (as described in HDFView). That means the value stored in HDF file may be silently truncated to 64 bits...

In C++ on such machine long double macro LDBL_MAX value is properly reported as 1.18973e+4932, but in HDF file (HDFView) it is already "Infinity".

Is it a limitation in the HDF library?
Is there any workaround for that issue?

Best regards,
Rafal


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to