[math.modulo]

math.modulo is a slot in the math namespace, in Hyperlambda, the language of Magic Cloud. Calculates the remainder of a division.

  • Returns: Resolves to the remainder of the modulo operation

Arguments

Required arguments come first, then the optional ones in the order they are declared.

Argument Type Required Description
any node name number yes Numeric operand evaluated before calculating the result.

Guide: How to use [math.modulo]

JSON declaration

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

JSON declaration
{
  "name": "math.modulo",
  "description": "Calculates the remainder of a division",
  "signature": {
    "children": {
      "*": {
        "type": "number",
        "kind": "number",
        "description": "Numeric operand evaluated before calculating the result",
        "required": true,
        "mode": "ExecutableLambda",
        "cardinality": "TwoOrMore",
        "role": "OperandPaired",
        "evaluation": "EvalSelf",
        "projection": "Value"
      }
    },
    "output": {
      "mode": "Value",
      "kind": "number",
      "description": "Resolves to the remainder of the modulo operation"
    }
  }
}

← math.min all math.* slots math.multiply →