> 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/number/methods/static-create.md).

# static create()

## `Number.create()`

The static `create()` method creates the [`Number`](/range-1/number/overview.md) instance with the given primitive [`value`](#value-value).

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

```typescript
public static create<Value extends number>(value: Value): Number<Value> {
  return new this(value);
}
```

{% endcode %}

### Generic type variables

#### <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 indicates captured type of the supplied [`value`](#value-value) via the [return type](#return-type).

### Parameters

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

The number of generic type variable [`Value`](#valueextendsnumber) to set with a new instance.

### Return type

#### [<mark style="color:green;">`Number`</mark>](/range-1/number/overview.md)`<`[<mark style="color:green;">`Value`</mark>](#valueextendsnumber)`>`

The **return type** is the [`Number`](/range-1/number/overview.md) [primitive wrapper object](https://developer.mozilla.org/en-US/docs/Glossary/Primitive#primitive_wrapper_objects_in_javascript) that takes the generic type variable [`Value`](#valueextendsnumber).

### Returns

The **return value** is the [`Number`](/range-1/number/overview.md) instance with the [primitive value](https://docs.angular-package.dev/range-1/number/methods/pages/NR8vwPX9prnPFxrqsjGv#number.prototype.valueof) of the given [`value`](#value-value).

## Example usage

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

// Returns Number {27} of Number<27>.
Number.create(27);
```
