> ## Documentation Index
> Fetch the complete documentation index at: https://helix-digitalocean.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# E633

# Non-Integer Range Index

## Erroneous Code Example

This error occurs when you use a non-integer value as an index in a range operation.

In this example, the range index is a float value.

<CodeGroup>
  ```rust example1.hx theme={null}
  Query getUser() =>
      subset_of_users <- N<User>::RANGE(1.5, 4.9)
      RETURN subset_of_users
  ```

  ```rust example2.hx theme={null}
  Query getUser(end: F32) =>
      subset_of_users <- N<User>::RANGE(0, end)
      RETURN subset_of_users
  ```
</CodeGroup>

## Solution

Use integer values for range indices or set variable types to integer types.

<CodeGroup>
  ```rust queries.hx theme={null}
  Query getUser() =>
      subset_of_users <- N<User>::RANGE(1, 5)
      RETURN subset_of_users
  ```

  ```rust example2.hx theme={null}
  Query getUser(end: I64) =>
      subset_of_users <- N<User>::RANGE(0, end)
      RETURN subset_of_users
  ```
</CodeGroup>
