14 lines
450 B
Plaintext

{
"name": "round",
"type": "function",
"description": "Rounds a number to number of decimal places.",
"arguments": [
{"arg":"decimal","description":"decimal number to be rounded"},
{"arg":"places","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"}
]
}