> For the complete documentation index, see [llms.txt](https://docs.cheddar.vihan.org/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheddar.vihan.org/docs/mathematics.md).

# Mathematics

In Cheddar, mathematical functions are all operators. This is to make mathematics more idomatic, this section covers all mathematical operations in Cheddar.

* The operators and behaviors as described in this section applies to `number`s. Any number made through a number literal is of class `number`.

  Most likely any numeric classes have defined overloads for each numeric operator, refer to the class's documentation for more information
* All operators are left-associative unless otherwise specified

  **Note:** This section only covers mathematical *operators*, reference the Math namespace for more mathematical functions


---

# 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:

```
GET https://docs.cheddar.vihan.org/docs/mathematics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
