|
The mi_fp_setargprec() accessor function sets the precision of a fixed-point or floating-point argument of a user-defined routine in its associated MI_FPARAM structure.
The mi_fp_setargprec() function sets the precision of the routine argument at position arg_pos in the MI_FPARAM structure that fparam_ptr references.
The precision is an attribute of the data type that represents the total number of digits the routine return value can hold, as follows.
The MI_FPARAM structure stores information about the precision of routine arguments in the zero-based argument-precision array. To set information for the nth argument, use an arg_pos value of n-1. For example, the following call to mi_fp_setargprec() sets the precision for the third argument of the my_func() UDR, with which fparam1 is associated:
None.
See the descriptions of the following functions: mi_fp_argprec(), mi_fp_setargisnull(), mi_fp_setarglen(), mi_fp_setargscale(), mi_fp_setargtype(), mi_fp_retprec(), and mi_fp_setretprec().
For more information about the precision of a fixed-point data type, see Chapter 3, Using Numeric Data Types.