H5T.set_sign

Set sign property for integer data type

Syntax

H5T.set_sign(type_id,sign)

Description

H5T.set_sign(type_id,sign) sets the sign property for an integer type. type_id is a data type identifier. Specify the sign type sign as 'H5T_SGN_NONE' or 'H5T_SGN_2'.

Examples

type_id = H5T.copy('H5T_NATIVE_LONG');
sgn = H5ML.get_constant_value('H5T_SGN_NONE');
H5T.set_sign(type_id,sgn);

See Also