> For the complete documentation index, see [llms.txt](https://range.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://range.angular-package.dev/range/methods/valueup.md).

# valueUp()

## `Range.prototype.valueUp()`

The `valueUp()` method increments the range [value](/range/accessors/value.md) of a specified [`Range`](/range/overview.md) object by the range [step](/range/accessors/get-step.md) or given [`stepIncrement`](#stepincrement-number).

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

```typescript
public valueUp(stepIncrement = 1): this {
  typeof this.value === 'number' && stepIncrement > 0 &&
    this.setValue(this.value + stepIncrement * this.#step);
  return this;
}
```

{% endcode %}

### Parameters

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

The optional `stepIncrement` parameter of the [`number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) type increments the range [`value`](/range/accessors/value.md). If no parameter is passed, `stepIncrement` defaults to **`1`**.

### Return type

#### [<mark style="color:green;">`this`</mark>](/range/overview.md)

### Returns

The **return value** is the [`Range`](/range/overview.md) instance.

## Example usage

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

// Create new instance.
// Returns Range {min: 3, max: 27, value: 10} of Range<3, 27, 3>.
const range = new Range(3, 27, 10, 3);

// Returns 10.
range.value;

// Returns 13.
range.valueUp().value;

// Returns 19.
range.valueUp(2).value;
```


---

# 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://range.angular-package.dev/range/methods/valueup.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.
