> For the complete documentation index, see [llms.txt](https://docs.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.angular-package.dev/range-1/inequality/generic-type-variables.md).

# Generic type variables

### `Inequality<`<mark style="color:green;background-color:green;">`Value`</mark>`>`

#### <mark style="color:green;">`Value`</mark>`extends`[<mark style="color:green;">`number`</mark>](https://www.typescriptlang.org/docs/handbook/basic-types.html#number)

​A generic type variable constrained by the [`number`](https://www.typescriptlang.org/docs/handbook/basic-types.html#number), by default of the value **captured** from the supplied [`value`](/range-1/inequality/constructor.md#value-value) indicates the [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive#primitive_wrapper_objects_in_javascript) type of a new child class instance.

{% code title="inequality.class.ts" %}

```typescript
abstract class Inequality<
  Value extends number // <--- Declare generic type variable Value.
> extends Number {
  constructor(
    value: Value // <--- Capture generic type variable Value.
  ) {
    super(value);
    this.#greater = new Greater(value);
    this.#less = new Less(value);
  }
}
```

{% endcode %}
