# classname_fieldname_to_chars

This function is generated only for decimal or numeric fields. The 8 byte integer value is converted to a character string.

### Prototype

>         MCO_RET	classname_fieldname_to_chars(	/*IN*/ mco_int8 scaled_num,
>                                /*OUT*/ char * buf,
>                                /*IN*/ int buf_size);

### Arguments

scaled_num | The 8 byte integer value to be converted to a character string
buf | The character string representing the integer value

### Description

This function is generated only for decimal or numeric fields. The 8 byte integer value is converted to a character string.

### Return Codes

MCO_S_OK | Conversion successful
MCO_E_ILLEGAL_PARAM | Illegal value in scaled_num