The internal data type ncx_num_t is used to store numeric types such as decimal64


The file ncx/ncx_num.c contains access functions for ncx_num_t.


The following example sets a decimal64 within an ncx_num_t struct

 

        const xmlChar *numstr = "4.05";
            ncx_num_t decnum;
            ncx_init_num(&decnum);
            res = ncx_decode_dec64(valstr,
                   typ_get_fraction_digits(val->typdef),
                   &decnum);