> For the complete documentation index, see [llms.txt](https://racoon-js.gitbook.io/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://racoon-js.gitbook.io/zh/jie-kou-shuo-ming/number/min.md).

# min

min(limit, \[closed=true])

## 作用

限制被检测数值的最小值。

## 参数

* `limit`***(number)*** - 最小值
* `[closed]`***(boolean)*** - 是否闭区间，默认`true`, 表示闭区间，被检测值需大于或等于`limit`.若`closed`明确为`false`, 则表示开区间，被检测值必须严格大于`limit`.

## 示例

```javascript
const schema = racoon.number().min(10);
schema.validate(9); // fail
schema.validate(10); // pass
schema.validate(11); // pass

const schema2 = racoon.number().min(10, false);
schema2.validate(9); // fail
schema.validate(10); // fail
schema.validate(11); // pass
```
