# NumberRange

## Overview

두 개의 값으로 정의되는 숫자 구간을 표현하는 데이터 타입입니다. 이 구간은 최소값과 최대값 사이의 범위를 의미하며, 다양한 수치 설정에서 범위 제한을 지정하는 데 사용됩니다.

내부적으로는 32비트 부동 소수점 형식을 사용하여 값을 저장하므로, 극단적으로 큰 수나 정밀한 소수 계산이 필요한 경우에는 값의 정확도가 완전히 보장되지 않을 수 있습니다.

## Constructors

### new

지정된 최소값과 최대값을 기준으로 NumberRange를 새로 생성합니다. 범위를 구성할 때 최소값은 최대값을 초과할 수 없으며, 두 값이 동일한 경우에는 단일 값 범위를 의미합니다. 이를 통해 허용 가능한 숫자 구간을 명확하게 정의할 수 있습니다.

#### Parameters

| `number` InMin | NumberRange의 최소값을 지정합니다. 이 값은 범위의 시작을 의미하며, 최대값보다 클 수 없습니다. |
| -------------- | ----------------------------------------------------------- |
| `number` InMax | NumberRange의 최대값을 지정합니다. 이 값은 범위의 끝을 의미하며, 최소값보다 작을 수 없습니다. |

#### Return

| `NumberRange` | 지정된 최소값과 최대값을 기준으로 생성된 NumberRange 객체입니다. |
| ------------- | ----------------------------------------- |

#### Code Samples

```lua
local NumRange = NumberRange.new(1, 10)
```

## Properties

### Max

`number`

NumberRange에서 허용되는 가장 큰 수를 의미합니다. 범위의 유효성을 유지하기 위해, 해당 값은 최소값보다 작아질 수 없도록 제한됩니다.

#### Code Samples

```lua
local NumRange = NumberRange.new(1, 10)
print(NumRange.Max)
```

### Min

`number`

NumberRange에서 허용되는 가장 작은 수를 의미합니다. 범위의 유효성을 유지하기 위해, 해당 값은 최대값을 초과할 수 없도록 제한됩니다.

#### Code Samples

```lua
local NumRange = NumberRange.new(1, 10)
print(NumRange.Min)
```

## Methods

## Events


---

# 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://docs.overdare.com/korean/development/api-reference/datatype/numberrange.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.
