Harrissou Sant-anna 55f7402ab0 Show more expression functions examples
also fix typo
2021-11-05 07:23:19 +11:00

16 lines
558 B
Plaintext

{
"name": "round",
"type": "function",
"groups": ["Math"],
"description": "Rounds a number to number of decimal places.",
"arguments": [
{"arg":"value","description":"decimal number to be rounded"},
{"arg":"places","optional":true,"default":"0","description":"Optional integer representing number of places to round decimals to. Can be negative."}
],
"examples": [
{ "expression":"round(1234.567, 2)", "returns":"1234.57"},
{ "expression":"round(1234.567)", "returns":"1235"},
{ "expression":"round(1234.567, -1)", "returns":"1230"}
]
}