mumu 0.10.0

Lava Mumu is a language for those in the now and that know
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  "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."
  ]
}