> For the complete documentation index, see [llms.txt](https://docs.graphlinq.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graphlinq.io/dev-tooling/blocks/base-variable/integer.md).

# Integer

The `Integer` block allows us to enter whole number values into our graphs by linking an `Integer` block's output to an integer type input of another block.

In the following graph snippet, we use an `Integer` block to enter the integer 10 as an input into the `Get Uniswap Token Price` block:

<figure><img src="https://i.imgur.com/Lro9Co3.png" alt=""><figcaption></figcaption></figure>

When the above graph is run, the price value output by the `Get Uniswap Token Price`block will be the price of 10 of the tokens specified by the contract address in the [`String`](/dev-tooling/blocks/string.md)block.

This is an example of using an `Integer` block to specify an integer literal, which is an integer whose value is known by the developer when they develop the graph, and can therefore be entered directly as we have done with the number 10. As with all the other base variable data types, we can also save integer values determined at runtime as persistent variables using [`Set variable`](/dev-tooling/blocks/base-variable/set-variable.md) blocks, and we can retreive those values later using [`Get variable`](/dev-tooling/blocks/base-variable/get-variable.md) blocks.


---

# 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.graphlinq.io/dev-tooling/blocks/base-variable/integer.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.
