Overview
The toDouble() function converts a value to a double-precision floating-point number.
When converting a textual value, the function only returns a valid result if the text begins with a number; otherwise, it returns 0.
When provided with a NODE or EDGE value, the function returns its UUID.
For unsupported value types, the function returns null.
Syntax
toDouble(value)
| Augment | Type | Description | 
|---|---|---|
| value | Numerical, textual, timestamp, boolean, NODE, EDGE | The value to be converted | 
Return type: Double
Example of Result
return toDouble(-36.123456789012345)
Result: -36.1234567890123
return toDouble("-36.1234abc")
Result: -36.1234
 
        