Routines (alphabetical) > Routines: H > HDF5 Routines > H5T_GET_PRECISION

# H5T_GET_PRECISION

The H5T_GET_PRECISION function returns the precision in bits of an atomic datatype. The precision is the number of significant bits which, unless padded, is 8 times larger than the byte size from H5T_GET_CSET.

## Syntax

Result = H5T_GET_PRECISION(Datatype_id)

## Return Value

Returns the bit precision, or 0 if the datatype is not atomic.

## Arguments

### Datatype_id

An integer representing the datatype’s identifier to be queried.

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5T_GET_INPAD, H5T_GET_ORDER, H5T_GET_PAD, H5T_GET_SIZE