<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@easyops-cn/brick-next-pipes](./brick-next-pipes.md) &gt; [round](./brick-next-pipes.round.md)

## round() function

获取一个数值的近似值。

 Mathematics

**Signature:**

```typescript
export declare function round(n: number, precision?: number): number;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  n | number | 数值。 |
|  precision | number | 精度。 |

**Returns:**

number

近似值。

## Remarks

透传调用 [\_.round](https://lodash.com/docs/#round)<!-- -->。

