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

# H5T_GET_SIGN

The H5T_GET_SIGN function returns the sign type for an integer datatype.

## Syntax

Result = H5T_GET_SIGN(Datatype_id)

## Return Value

Returns the sign type. Possible values are:

- -1 — Error
- 0 — Unsigned integer type
- 1 — Two's complement signed integer type

## Arguments

### Datatype_id

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

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5T_GET_ORDER, H5T_GET_PAD, H5T_GET_PRECISION