> ## Documentation Index
> Fetch the complete documentation index at: https://docs.melonly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Math Utilities

> Learn how math utility blocks perform calculations inside workflows.

***

Math Utilities perform calculations with numbers.\
Use them to add, subtract, multiply or divide values, or to find the smaller or larger of two numbers.

<Frame caption="Math utilities in the block library">
  <img className="block" src="https://mintcdn.com/melonly/Icf-MhWcCce5bv5F/images/Dashboard/Workflows/lib-math.png?fit=max&auto=format&n=Icf-MhWcCce5bv5F&q=85&s=69bc0ff235505b4ca59c8044a8dec3a4" alt="The block library showing the Multiply block with Value1, Value2 and Number" style={{ borderRadius: '0.75rem' }} width="1918" height="989" data-path="images/Dashboard/Workflows/lib-math.png" />
</Frame>

***

## Blocks

<Tabs>
  <Tab title="Add">
    ## Add

    The Add block adds two numbers together.

    ### What Does It Do?

    The Add block returns the sum of both inputs.

    <Card title="">
      **Input**

      * **Value1**: The first number.
      * **Value2**: The second number.

      **Output**

      * **Number**: The sum of both inputs.
    </Card>
  </Tab>

  <Tab title="Subtract">
    ## Subtract

    The Subtract block subtracts one number from another.

    ### What Does It Do?

    The Subtract block returns Value1 minus Value2.

    <Card title="">
      **Input**

      * **Value1**: The first number.
      * **Value2**: The second number.

      **Output**

      * **Number**: Value1 minus Value2.
    </Card>
  </Tab>

  <Tab title="Multiply">
    ## Multiply

    The Multiply block multiplies two numbers together.

    ### What Does It Do?

    The Multiply block returns the product of both inputs.

    <Card title="">
      **Input**

      * **Value1**: The first number.
      * **Value2**: The second number.

      **Output**

      * **Number**: The product of both inputs.
    </Card>
  </Tab>

  <Tab title="Divide">
    ## Divide

    The Divide block divides one number by another.

    ### What Does It Do?

    The Divide block returns Value1 divided by Value2.

    <Card title="">
      **Input**

      * **Value1**: The first number.
      * **Value2**: The second number.

      **Output**

      * **Number**: Value1 divided by Value2.
    </Card>
  </Tab>

  <Tab title="Min">
    ## Min

    The Min block returns the smaller of two numbers.

    ### What Does It Do?

    The Min block compares both inputs and returns the smaller value.

    <Card title="">
      **Input**

      * **Value1**: The first number.
      * **Value2**: The second number.

      **Output**

      * **Number**: The smaller of both inputs.
    </Card>
  </Tab>

  <Tab title="Max">
    ## Max

    The Max block returns the larger of two numbers.

    ### What Does It Do?

    The Max block compares both inputs and returns the larger value.

    <Card title="">
      **Input**

      * **Value1**: The first number.
      * **Value2**: The second number.

      **Output**

      * **Number**: The larger of both inputs.
    </Card>
  </Tab>
</Tabs>

***

<Card title="Need help?" icon="headset" href="https://melonly.xyz/discord">
  Still have questions? Join our Discord server for support from the Melonly Team.
</Card>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.