[math.round]

math.round is a slot in the math namespace, in Hyperlambda, the language of Magic Cloud. Rounds a number.

  • Value (number), required: Numeric value to round
  • Returns: Resolves to the rounded value

Guide: How to use [math.round]

JSON declaration

This is the complete declaration of math.round, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "math.round",
  "description": "Rounds a number",
  "signature": {
    "input": {
      "kind": "number",
      "description": "Numeric value to round",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "output": {
      "mode": "Value",
      "kind": "number",
      "description": "Resolves to the rounded value"
    }
  }
}

← math.random all math.* slots math.sin →