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:
Tudor Bărăscu 2024-05-29 17:46:23 +03:00 committed by Nyall Dawson
parent 2682a2ee2d
commit b4b84813d3
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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"