get_double


Description:

public double get_double ()

Gets the double value stored inside a node.

If the node holds an integer value, it is returned as a double.

If the node holds a `FALSE` boolean value, `0.0` is returned; otherwise a non-zero double is returned.

If the node holds a `JSON_NODE_NULL` value or a value of another non-double type, `0.0` is returned.

Parameters:

this

a node holding a floating point value

Returns:

a double value.




2022 vala-language.org