# InputNumber 数字输入

用于数值的精确输入和调整。

## 使用示例

### 基本用法

[Example: 数字输入](./_example/InputNumberExample.jsx)

<!-- <Half> -->

### 格式化

通过 `formatter` 改变输入框展示值的格式，需配合 `parser` 使用。

[Example: 格式化](./_example/InputNumberFormatExample.jsx)

### 精度

通过读取 `step` 或直接设置 `precision` 调整数字精度。

[Example: 格式化](./_example/InputNumberPrecisionExample.jsx)

<!-- </Half> -->

## 组件属性

[Interface: InputNumberProps](./InputNumber.tsx)


<!--
## 从 Tea v1 升级

- 废弃 `size` 属性：不提供多种尺寸，使用同一尺寸
- 废弃 `error` 属性：异常状态统一由外围表单管理
- 回调 `onChange` 改为统一的受控组件回调方法 -->
