---
title: "Math.min: TypeShade 언어 참조에 실린 Math 멤버 이름과 그 시그니처"
description: "Math.min (Math 멤버), TypeShade 언어 참조 항목입니다. Returns the lesser of a and b."
url: https://typeshade.dev/ko/reference/math/min/
language: ko
---

# `Math.min`

Math 멤버

Returns the lesser of `a` and `b`.

[뜻과 예제: `min`](https://typeshade.dev/ko/reference/functions/min/)

시그니처와 이름 아래 문장, 컴파일러 메시지는 커밋 af54ddad5의 컴파일러가 쓴 영어 원문입니다.

## 구문

```ts
Math.min(a: number, b: number): number
```

매개변수나 반환 위치에 쓰인 `number`는 스칼라가 들어갈 자리입니다. 앰비언트 파일은 GPU 스칼라를 브랜드가 붙은 number로 선언하고 그 브랜드는 선택이라서, 리터럴도 브랜드가 붙은 스칼라도 이 자리에 들어갑니다.

`type f32 = number & { readonly [f32Tag]?: true }`

타입으로 쓴 `number`는 쓰이는 곳을 보고 추론하며, `f32`, `i32`, `u32`는 너비를 고정합니다. 그 행과 컴파일러가 낸 결과는 [TypeScript에서](https://typeshade.dev/ko/guide/language/from-typescript/) 페이지에 있습니다.

## 매개변수

- `a` `number`
- `b` `number`

## 반환값

`number`

## 설명

With a NaN argument the GPU result is undefined, and the CPU oracle returns the other argument. Also accepts `f64` operands.

CPU 오라클이 `f64`로 직접 계산합니다.

## 함께 보기

- [Math 멤버](https://typeshade.dev/ko/reference/math/)
- [`min`](https://typeshade.dev/ko/reference/functions/min/)
- [`typeshade/core/ir`의 `min()`](https://typeshade.dev/ko/api/min/)
