Tudor Bărăscu b4b84813d3 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.
2024-05-30 07:29:04 +10:00

16 lines
663 B
Plaintext

{
"name": "to_real",
"type": "function",
"groups": ["Conversions"],
"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"
}],
"examples": [{
"expression": "to_real('123.45')",
"returns": "123.45"
}],
"tags": ["converts", "precision", "invalid", "rounded", "numbers", "changes", "real", "result", "converted", "saving", "conversion", "smaller"]
}