{
  "id": "fn-math-trunc",
  "dataComponent": "math",
  "heading": {
    "title": "trunc",
    "badges": ["Math", "JSMath"]
  },
  "synopsis": "Removes any fractional digits from a single numeric argument, effectively rounding toward 0.",
  "codeBlocks": [
    "extend(\"math\")\\n\\nsput( math:trunc(3.99) )\\n# => 3\\n\\nsput( math:trunc(-1.99) )\\n# => -1"
  ],
  "notes": [
    "Accepts exactly 1 numeric argument, returning an integer part of x (as float or int). Negative numbers move toward 0."
  ]
}
