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

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

## ColorHSV.roundToPrecision() method

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

<b>Signature:</b>

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

## Parameters

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

<b>Returns:</b>

[ColorHSV](./fast-colors.colorhsv.md)
