Function toInteger()
converts a number or the nubmer part of a string starting from the first character into double and returns this double value. It returns 0 if the first character of the string is not a digit, returns UUID if NDOE or EDGE is passed in, or returns null
if other types are passed in.
Arguments:
- Value <number | string | text | bool>
Returns:
- Double <double>
Comman Usage
Example: Convert -1234567890.123456 to double
return toDouble(-1234567890.123456)
-1234567890.123456
Example: Convert '2023-03-02' to double
return toDouble("2023-03-02")
2023
Analysis: When "2023-03-02" is passed in as a temporal type, for example a datetime property of a node, the system will return null
.