---
id: fast-colors.roundtoprecisionsmall
title: roundToPrecisionSmall() function
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [roundToPrecisionSmall](./fast-colors.roundtoprecisionsmall.md)

## roundToPrecisionSmall() function

Will return infinity if i\*10^(precision) overflows number note that floating point rounding rules come into play here so values that end up rounding on a .5 round to the nearest even not always up so 2.5 rounds to 2

<b>Signature:</b>

```typescript
export declare function roundToPrecisionSmall(i: number, precision: number): number;
```

## Parameters

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

<b>Returns:</b>

number
