Obtain floating-point type information
The provides functions to obtain the precision of a floating-point DECIMAL (DECIMAL(p)).
| Source | functions |
|---|---|
| For a data type | mi_type_precision() |
| For a UDR argument | mi_fp_argprec(), mi_fp_setargprec() |
| For a UDR return value | mi_fp_retprec(), mi_fp_setretprec() |
| For a column | mi_column_precision() |
| For an input parameter in a prepared statement | mi_parameter_precision() |
Tip: The FLOAT and SMALLFLOAT data types do not
have precision and scale values.