C Collections

cyaml · Section 3

cyaml_double_val

cyaml_double_val - extract a floating-point value from a CYAML_FLOAT node

C Collections (libccollections, -lccollections)

#include <ccollections/cyaml.h>
 
double cyaml_double_val(cyaml node);

Returns the double that node stores.  The function calls
ccol__fatal_err() when node is NULL and when node is not of type
CYAML_FLOAT.  The value can be infinite or NaN (see
cyaml_create_double_mp).

node  A CYAML_FLOAT node.

The double value.

cyaml_type(3), cyaml_create_double(3)