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

# Math

### <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> **Add Number**

```javascript theme={null}
math.add myVariable {
  value = 5
}
```

| Parameter  | Purpose                                                         | Example    |
| ---------- | --------------------------------------------------------------- | ---------- |
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value      | The value you want to apply to the math operation               | 5          |

<Accordion title="Example">
  ```javascript theme={null}
  math.add myVariable {
    value = 5
  }
  ```

  <img src="https://mintcdn.com/xano-997cb9ee/p57kHPQ04p_0aEqF/images/b01aa98b-image.jpeg?fit=max&auto=format&n=p57kHPQ04p_0aEqF&q=85&s=e88528a2029684fde3a3836ffbb1bcd3" alt="" width="405" height="52" data-path="images/b01aa98b-image.jpeg" />
</Accordion>

### <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> **Subtract Number**

```javascript theme={null}
math.sub myVariable {
  value = 5
}
```

| Parameter  | Purpose                                                         | Example    |
| ---------- | --------------------------------------------------------------- | ---------- |
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value      | The value you want to apply to the math operation               | 5          |

<Accordion title="Example">
  ```javascript theme={null}
  math.sub myVariable {
    value = 5
  }
  ```

  <img src="https://mintcdn.com/xano-997cb9ee/_oKnuVg5Nf4VhJM4/images/476d1933-image.jpeg?fit=max&auto=format&n=_oKnuVg5Nf4VhJM4&q=85&s=e840ffaab6ee5838c4a31f8d39bceaa1" alt="" width="443" height="51" data-path="images/476d1933-image.jpeg" />
</Accordion>

### <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> **Multiply Number**

```javascript theme={null}
math.mul myVariable {
  value = 5
}
```

| Parameter  | Purpose                                                         | Example    |
| ---------- | --------------------------------------------------------------- | ---------- |
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value      | The value you want to apply to the math operation               | 5          |

<Accordion title="Example">
  ```js theme={null}
      math.mul myVariable {
        value = 5
      }
  ```

  <img src="https://mintcdn.com/xano-997cb9ee/_FyaEhYRFYQZinJ0/images/d9d87726-image.jpeg?fit=max&auto=format&n=_FyaEhYRFYQZinJ0&q=85&s=055089277acdfddbebb234ff30cf7487" alt="" width="432" height="50" data-path="images/d9d87726-image.jpeg" />
</Accordion>

### <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> **Divide Number**

```javascript theme={null}
math.div myVariable {
  value = 5
}
```

| Parameter  | Purpose                                                         | Example    |
| ---------- | --------------------------------------------------------------- | ---------- |
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value      | The value you want to apply to the math operation               | 5          |

<Accordion title="Example">
  ```javascript theme={null}
  math.div myVariable {
    value = 5
  }
  ```

  <img src="https://mintcdn.com/xano-997cb9ee/dC3SQWgPCF_-1qn6/images/303bf2e2-image.jpeg?fit=max&auto=format&n=dC3SQWgPCF_-1qn6&q=85&s=e65a1f0f710ee63bb85c5c20263915aa" alt="" width="430" height="48" data-path="images/303bf2e2-image.jpeg" />
</Accordion>

### <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> **Modulus Number**

```javascript theme={null}
math.mod myVariable {
  value = 5
}
```

| Parameter  | Purpose                                                         | Example    |
| ---------- | --------------------------------------------------------------- | ---------- |
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value      | The value you want to apply to the math operation               | 5          |

<Accordion title="Example">
  ```javascript theme={null}
  math.mod myVariable {
    value = 5
  }
  ```

  <img src="https://mintcdn.com/xano-997cb9ee/nsvdyKK4Dg7VUAZs/images/8f37ea6d-image.jpeg?fit=max&auto=format&n=nsvdyKK4Dg7VUAZs&q=85&s=45dbce20836c076e3ffbe97e4fdbbac1" alt="" width="435" height="48" data-path="images/8f37ea6d-image.jpeg" />
</Accordion>

### <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> **Bitwise AND Number**

```javascript theme={null}
math.bitwise.and myVariable {
  value = 5
}
```

| Parameter  | Purpose                                                         | Example    |
| ---------- | --------------------------------------------------------------- | ---------- |
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value      | The value you want to apply to the math operation               | 5          |

<Accordion title="Example">
  ```javascript theme={null}
  math.bitwise.and myVariable {
    value = 5
  }
  ```

  <img src="https://mintcdn.com/xano-997cb9ee/dyVYERTquSXdpw_-/images/a07b0f22-image.jpeg?fit=max&auto=format&n=dyVYERTquSXdpw_-&q=85&s=dcb674f22f55753d04c19e016f986a8e" alt="" width="392" height="45" data-path="images/a07b0f22-image.jpeg" />
</Accordion>

### <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> **Bitwise OR Number**

```javascript theme={null}
math.bitwise.or myVariable {
  value = 5
}
```

| Parameter  | Purpose                                                         | Example    |
| ---------- | --------------------------------------------------------------- | ---------- |
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value      | The value you want to apply to the math operation               | 5          |

<Accordion title="Example">
  ```javascript theme={null}
  math.bitwise.or myVariable {
    value = 5
  }
  ```

  <img src="https://mintcdn.com/xano-997cb9ee/tjSJ_pOzk8E0WRhF/images/c21036c9-image.jpeg?fit=max&auto=format&n=tjSJ_pOzk8E0WRhF&q=85&s=997ea996c96a9ab15f71112d58dd5a47" alt="" width="384" height="46" data-path="images/c21036c9-image.jpeg" />
</Accordion>

### <Icon icon="https://mintcdn.com/xano-997cb9ee/aZQYcxhIvSDTNEim/images/icons/xs_temp.svg?fit=max&auto=format&n=aZQYcxhIvSDTNEim&q=85&s=6e05b86a660544b2d6040353bd8faac8" size={46} width="371" height="137" data-path="images/icons/xs_temp.svg" /> **Bitwise XOR Number**

```javascript theme={null}
math.bitwise.xor myVariable {
  value = 5
}
```

| Parameter  | Purpose                                                         | Example    |
| ---------- | --------------------------------------------------------------- | ---------- |
| myVariable | This is the variable you want to target with the math operation | myVariable |
| value      | The value you want to apply to the math operation               | 5          |

<Accordion title="Example">
  ```javascript theme={null}
  math.bitwise.xor myVariable {
    value = 5
  }
  ```

  <img src="https://mintcdn.com/xano-997cb9ee/NAqNmVIgcJlXegps/images/01665400-image.jpeg?fit=max&auto=format&n=NAqNmVIgcJlXegps&q=85&s=6783839be16edf5ac68db8645a9bc11c" alt="" width="399" height="45" data-path="images/01665400-image.jpeg" />
</Accordion>
