[math.abs]

math.abs is a slot in the math namespace, in Hyperlambda, the language of Magic Cloud. Returns the absolute value.

  • Value (number), required: Numeric value to transform
  • Returns: Resolves to the absolute value

Guide: How to use [math.abs]

JSON declaration

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

JSON declaration
{
  "name": "math.abs",
  "description": "Returns the absolute value",
  "signature": {
    "input": {
      "kind": "number",
      "description": "Numeric value to transform",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "output": {
      "mode": "Value",
      "kind": "number",
      "description": "Resolves to the absolute value"
    }
  }
}

all math.* slots math.add →