parse_version()
Converts the input string representation of version to a comparable decimal number.
parse_version("0.0.0.1")
Syntax
parse_version
(
Expr )
Arguments
Expr
: A scalar expression of typestring
that specifies the version to be parsed.
Notes:
- Input string must contain from one to four version parts, represented as numbers and separated with dots ('.').
- Each part of version may contain up to eight digits, with the max value at 99999999.
- If the number of parts is less than four, all the missing parts are considered as trailing (
1.0
==1.0.0.0
).
Returns
If conversion is successful, the result will be a decimal. If conversion is unsuccessful, the result will be null
.
Example
print parse_version("0.0.1.3")
print_0 |
---|
100000003 |