Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
679 B
Plaintext
Raw Permalink Normal View History

{
"name": "round",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["Math"],
"description": "Rounds a number to number of decimal places.",
2022-01-13 08:56:17 -05:00
"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"
}],
"tags": ["rounds", "places", "decimal", "number"]
}