---
title: formatRound()
slug: formatround
docTags: 
createdAt: 2021-09-14T17:46:53.000Z
---

Converts a given value into a `String`, rounded to specific decimal place. Accepts `Number`, `Money`, or `Percent` datatypes.

### Syntax

`formatRound(number[, places][, locale])`

- `number` - the Number value to be rounded
- `places` - the number of places of the returned value
- `locale` -&#x20;
- **Return type:** [String](docId\:Ujw2AQAktel5uukLuP73S)&#x20;

### Sample usage

`formatRound(10.101010, 2)` returns `"10.10"`.

`formatRound(base, 2)` returns the value of `base`, rounded to two decimal places, as a `String`.

### Supported data types

| **Input type**                             | **Return type**                         | **Logic**                                                                                             |
| ------------------------------------------ | --------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| ****[Number](docId\:ucI5tCTfVBhonEJ6ZQijg) | [String](docId\:Ujw2AQAktel5uukLuP73S)  | The passed Number value is rounded to the specified decimal places, then converted to a String value. |
| *Unsupported data types*                   | **[Null](docId\:N9trVqonnBknqL9DrNBP6)  | Unsupported data types return `Null`.                                                                 |

