/* Returns the newly built instance of #CRNum or NULL if an error arises.  */
CRNum* cr_num_new_with_val(gdouble a_val, enum CRNumType a_type)
/* Returns the newly built instance of #CRNum or NULL if an error arises.  */
CRNum* cr_num_new_with_val(gdouble a_val, enum CRNumType a_type)
{
        CRNum *result = NULL;
        result = cr_num_new ();
        g_return_val_if_fail (result, NULL);
        result->val = a_val;
        result->type = a_type;
        return result;
}