Node.getDouble

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.types.NodeType.Null value or a value of another non-double type, 0.0 is returned.

class Node
double
getDouble
()

Return Value

Type: double

a double value.