mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -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
663 B
Plaintext
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"]
|
|
}
|