mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
I got mislead by the "Nothing is returned if a value cannot be converted" as it led me to believe I was expecting NULL.
16 lines
466 B
Plaintext
16 lines
466 B
Plaintext
{
|
|
"name": "to_int",
|
|
"type": "function",
|
|
"groups": ["Conversions"],
|
|
"description": "Converts a string to integer number. If a value cannot be converted to integer the expression is invalid (e.g '123asd' is invalid).",
|
|
"arguments": [{
|
|
"arg": "string",
|
|
"description": "string to convert to integer number"
|
|
}],
|
|
"examples": [{
|
|
"expression": "to_int('123')",
|
|
"returns": "123"
|
|
}],
|
|
"tags": ["converts", "invalid", "converted", "integer"]
|
|
}
|