# classname_fieldname_from_chars

This function converts a character string to an 8 byte integer value.

### Prototype

>         MCO_RET	classname_fieldname_from_chars(	/*OUT*/ mco_int8 scaled_num,
>                                   /*IN*/ char const * buf );

### Arguments

scaled_num | The 8 byte integer value converted from character string
buf | A character string representing the value to be stored in a numeric or decimal field

### Description

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

### Return Codes

MCO_S_OK | Conversion successful
MCO_E_ILLEGAL_PARAM | Illegal value in buf