mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
Be clear that the expressions return invalid when they cannot convert
I got mislead by the "Nothing is returned if a value cannot be converted" as it led me to believe I was expecting NULL.
This commit is contained in:
parent
2682a2ee2d
commit
b4b84813d3
@ -2,7 +2,7 @@
|
||||
"name": "to_int",
|
||||
"type": "function",
|
||||
"groups": ["Conversions"],
|
||||
"description": "Converts a string to integer number. Nothing is returned if a value cannot be converted to integer (e.g '123asd' is invalid).",
|
||||
"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"
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "to_real",
|
||||
"type": "function",
|
||||
"groups": ["Conversions"],
|
||||
"description": "Converts a string to a real number. Nothing is returned if a value cannot be converted to real (e.g '123.56asd' is invalid). Numbers are rounded after saving changes if the precision is smaller than the result of the conversion.",
|
||||
"description": "Converts a string to a real number. If a value cannot be converted to real the expression is invalid (e.g '123.56asd' is invalid). Numbers are rounded after saving changes if the precision is smaller than the result of the conversion.",
|
||||
"arguments": [{
|
||||
"arg": "string",
|
||||
"description": "string to convert to real number"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user