![]() |
|
The mi_type_scale() function obtains the scale of the data type from its type descriptor.
The mi_type_scale() function obtains the data type scale from the type descriptor that type_desc references. The scale is an attribute of the data type. The meaning of the scale depends on the associated data type, as the following table shows.
If you call mi_type_scale() on some other data type, the function returns zero (0).
>=0 | is the scale of the data type in the type_desc type descriptor. |
MI_ERROR | indicates that the function was not successful. |
See the descriptions of the following functions: mi_type_align(), mi_type_byvalue(), mi_type_element_typedesc(), mi_type_full_name(), mi_type_length(), mi_type_maxlength(), mi_type_owner(), mi_type_precision(), mi_type_qualifier(), mi_type_typedesc(), and mi_type_typename().
For information on type-descriptor accessor functions, see Type Descriptors. For information on precision and scale, see Chapter 3, Using Numeric Data Types.