DECIMAL data type: Floating-point data

When you define a column with the DECIMAL(p) data type, the syntax of this definition specifies a floating-point value for the column. This value has a total of p (<= 32) significant digits (its precision). DECIMAL(p) has an absolute value range 10-130 - 10124.

Tip: The DECIMAL data type can also declare a fixed-point value with the syntax DECIMAL(p,s)..
The mi_decimal data type stores floating-point DECIMAL values and fixed-point values. Therefore, information about mi_decimal in Fixed-point data also applies to mi_decimal when it contains a floating-point value. In particular, the following statements are true.
Decimal information More information
The mi_decimal data type stores values in an internal (binary) format. Internal fixed-point decimal format
All the Informix ESQL/C library functions that handle fixed-point values in mi_decimal can also handle mi_decimal when it contains floating-point values. ESQL/C DECIMAL-type functions
All DataBlade® API functions that accept fixed-point values in mi_decimal also accept mi_decimal when it contains a floating-point value. Transfer fixed-point data (Server) and Convert decimal data

Values of the mi_decimal data type cannot fit into an MI_DATUM structure. They must be passed by reference within C UDRs.

All data types, including mi_decimal, must be passed by reference within client LIBMI applications.