> For the complete documentation index, see [llms.txt](https://fantastically-optimized.gitbook.io/chatcalculator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fantastically-optimized.gitbook.io/chatcalculator/welcome/commands.md).

# Commands

ChatCalculator uses the **`/calc` command** to perform mathematical calculations directly in Minecraft.

### Basic Usage

The basic syntax is:

```
/calc <number> <operator> <number>
```

Both numbers support **long values**, allowing you to perform calculations with large numbers.

### Addition

Use **`+`** to add two numbers together.

```
/calc 10 + 5
```

**Result:**

```
Result: 15
```

### Subtraction

Use **`-`** to subtract the second number from the first.

```
/calc 10 - 5
```

**Result:**

```
Result: 5
```

### Multiplication

Use **`x`** to multiply two numbers.

```
/calc 10 x 5
```

**Result:**

```
Result: 50
```

### Division

Use **`/`** to divide the first number by the second.

```
/calc 10 / 3
```

**Result:**

```
Result: 3
Remainder: 1
```

The division result uses whole numbers, while the **remainder** shows what is left over after the division.

{% hint style="info" %}
ChatCalculator currently supports **addition, subtraction, multiplication, and division**. The `%` operator does not need to be used separately because the remainder is automatically displayed when using `/`.
{% endhint %}

### Large Numbers

ChatCalculator uses **long values**, so you can use numbers much larger than the normal `int` range.

For example:

```
/calc 10000000000 x 5
```

**Result:**

```
Result: 50000000000
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://fantastically-optimized.gitbook.io/chatcalculator/welcome/commands.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
