> 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/draft/range/methods/maxgreaterthan.md).

# maxGreaterThan()

## `Range.prototype.maxGreaterThan()`

The `maxGreaterThan()` method checks whether the [`value`](#value-number) is **less** than the [**maximum**](/draft/range/properties/max.md) **range** of a specified [`Range`](/draft/range/overview.md) object.

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

```typescript
public maxGreaterThan(value: number): boolean {
  return this.#maximum.greaterThan(value);
}
```

{% endcode %}

### Parameters

#### `value:`[<mark style="color:green;">`number`</mark>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)

The value of [`number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) type to test.

### Return type

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

### Returns

The **return value** is a [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) type indicating whether the given [`value`](#value-number) is **less** than [**maximum**](/draft/range/properties/max.md) **range** of a specified [`Range`](/draft/range/overview.md) object.&#x20;

## Example usage

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

// Create new instance.
const range = new Range(4, 27);

// Returns true.
range.maxGreaterThan(26);

// Returns false.
range.maxGreaterThan(27);
```
