Returns the precision of an atomic datatype
Procedure:
H5T_GET_PRECISION (dtype_id)
Signature:
size_t H5Tget_precision( hid_t dtype_id )
SUBROUTINE h5tget_precision_f(type_id, precision, hdferr)
IMPLICIT NONE
INTEGER(HID_T), INTENT(IN) :: type_id ! Datatype identifier
INTEGER(SIZE_T), INTENT(OUT) :: precision ! Datatype precision
INTEGER, INTENT(OUT) :: hdferr ! Error code
END SUBROUTINE h5tget_precision_f
Parameters:
hid_t dtype_id | IN: Identifier of datatype to query |
Description:
H5T_GET_PRECISION returns the precision of an atomic datatype (for example, integer or float) or a datatype whose base (parent) type is an atomic type (for example, array, enum and variable length). The precision is the number of significant bits which, unless padding is present, is 8 times larger than the value returned by H5T_GET_SIZE.
Returns:
Returns the number of significant bits if successful; otherwise 0.
Example:
--- Last Modified: July 13, 2020 | 03:23 PM