> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-3a82795f.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> 값 그룹에서 가장 왼쪽 점과 가장 오른쪽 점 사이의 기울기를 계산하는 집계 함수입니다.

# boundingRatio

<div id="boundingRatio">
  ## boundingRatio
</div>

도입 버전: v20.1.0

값 그룹에서 가장 왼쪽 점과 가장 오른쪽 점을 이은 기울기를 계산합니다.

**구문**

```sql theme={null}
boundingRatio(x, y)
```

**인수**

* `x` — X 좌표 값. [`(U)Int*`](/ko/reference/data-types/int-uint) 또는 [`Float*`](/ko/reference/data-types/float) 또는 [`Decimal`](/ko/reference/data-types/decimal)
* `y` — Y 좌표 값. [`(U)Int*`](/ko/reference/data-types/int-uint) 또는 [`Float*`](/ko/reference/data-types/float) 또는 [`Decimal`](/ko/reference/data-types/decimal)

**반환 값**

가장 왼쪽 점과 가장 오른쪽 점 사이의 선의 기울기를 반환합니다. 데이터가 비어 있으면 `NaN`을 반환합니다. [`Float64`](/ko/reference/data-types/float)

**예시**

**샘플 데이터**

```sql title=Query theme={null}
SELECT
    number,
    number * 1.5
FROM numbers(10)
```

```response title=Response theme={null}
┌─number─┬─multiply(number, 1.5)─┐
│      0 │                     0 │
│      1 │                   1.5 │
│      2 │                     3 │
│      3 │                   4.5 │
│      4 │                     6 │
│      5 │                   7.5 │
│      6 │                     9 │
│      7 │                  10.5 │
│      8 │                    12 │
│      9 │                  13.5 │
└────────┴───────────────────────┘
```

**사용 예시**

```sql title=Query theme={null}
SELECT boundingRatio(number, number * 1.5)
FROM numbers(10)
```

```response title=Response theme={null}
┌─boundingRatio(number, multiply(number, 1.5))─┐
│                                          1.5 │
└──────────────────────────────────────────────┘
```
