---
id: fast-colors.colorlab.roundtoprecision
title: ColorLAB.roundToPrecision() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [ColorLAB](./fast-colors.colorlab.md) &gt; [roundToPrecision](./fast-colors.colorlab.roundtoprecision.md)

## ColorLAB.roundToPrecision() method

Returns a new [ColorLAB](./fast-colors.colorlab.md) rounded to the provided precision

<b>Signature:</b>

```typescript
roundToPrecision(precision: number): ColorLAB;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  precision | number | the precision to round to |

<b>Returns:</b>

[ColorLAB](./fast-colors.colorlab.md)
