{
"id": "fn-math-round",
"dataComponent": "math",
"heading": {
"title": "round",
"badges": ["Math", "JSMath"]
},
"synopsis": "Rounds a single numeric argument to the nearest integer (ties typically go to +∞ or to even, bridging-dependent).",
"codeBlocks": [
"extend(\"math\")\\n\\nsput( math:round(3.5) )\\n# => 4 or bridging depends (some may do bank rounding)\\nsput( math:round(-1.2) )\\n# => -1"
],
"notes": [
"One numeric argument. Behavior for .5 depends on your environment's bridging (it might round half up or to even)."
]
}