# static createMaximum()

## `Range.createMaximum()`

The static `createMaximum()` method returns the [`Maximum`](/draft/maximum/overview.md) instance of the given **maximum** [`value`](#value-value).

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

```typescript
public static createMaximum<Value extends number>(
  value: Value
): Maximum<Value> {
  return Maximum.create(value);
}
```

{% endcode %}

### Generic type variables

#### <mark style="color:green;">`Value`</mark>`extends`<mark style="color:green;">`number`</mark>

​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`](#value-value) indicates the [primitive value](https://range.angular-package.dev/draft/range/methods/pages/cQeUkF2Fkx0vAOXl7QtX#maximum.prototype.valueof) type of a new [`Maximum`](/draft/maximum/overview.md) instance.

### Parameters

#### `value:`[<mark style="color:green;">`Value`</mark>](#valueextendsnumber)

The **maximum** range of a generic type variable [`Value`](#valueextendsnumber) to set with a new instance of [`Maximum`](/draft/maximum/overview.md).

### Return type

#### [<mark style="color:green;">`Maximum`</mark>](/draft/maximum/overview.md)`<`[<mark style="color:green;">`Value`</mark>](#valueextendsnumber)`>`

The **return type** is the [`Maximum`](/draft/maximum/overview.md) object that takes generic type variable [`Value`](#valueextendsnumber).

### Returns

The **return value** is the [`Maximum`](/draft/maximum/overview.md) instance with the [primitive value](https://range.angular-package.dev/draft/range/methods/pages/cQeUkF2Fkx0vAOXl7QtX#maximum.prototype.valueof) from the given [`value`](#value-value).

## Example usage

```typescript
// Example usage.
import { Range } from '@angular-package/range';

// Returns Maximum {27} of Maximum<27>.
Range.createMaximum(27);
```


---

# Agent Instructions: 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://range.angular-package.dev/draft/range/methods/static-createmaximum.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.
