The decimal.h header file

The decimal.h header file contains definitions for use with the DECIMAL and MONEY data types.

This header file defines the following items:
  • The dec_t typedef
  • The decimal macros
  • The DECIMAL-type functions of the library

The mitypes.h header file automatically includes decimal.h. In turn, the milib.h header file automatically includes mitypes.h, and mi.h automatically includes milib.h. Therefore, you automatically have access to the dec_t structure, the mi_decimal and mi_money data types, any of the decimal macros, or any of the DECIMAL-type functions when you include mi.h in your module.