# Format helper rounding to specific number of decimal on a number

**URL:** https://forums.losant.com/t/format-helper-rounding-to-specific-number-of-decimal-on-a-number/4584
**Category:** Workflow Lab
**Tags:** workflow
**Created:** [June 10, 2022, 12:14am UTC](https://forums.losant.com/t/format-helper-rounding-to-specific-number-of-decimal-on-a-number/4584 "2022-06-10T00:14:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mohammed\_Alquraini](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@Mohammed\_Alquraini](https://forums.losant.com/u/Mohammed_Alquraini)
#### Post date: [June 10, 2022, 12:14am UTC](https://forums.losant.com/t/format-helper-rounding-to-specific-number-of-decimal-on-a-number/4584/1 "2022-06-10T00:14:30Z")

</div>

need help in the correct format helper for rounding to specific number of decimal on a number, example i have the value 15153.636 i need it to be 15,153.64

---

<div class="post-metadata">

### Author: ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)
#### Post date: [June 10, 2022, 12:43pm UTC](https://forums.losant.com/t/format-helper-rounding-to-specific-number-of-decimal-on-a-number/4584/2 "2022-06-10T12:43:16Z")

</div>

Hi @Mohammed_Alquraini, and welcome to the Losant Forums.

From our [documentation on the `{{format}}` helper](https://docs.losant.com/workflows/accessing-payload-data/#format-helpers):

> `{{format val formatStr}}` :  
> If `val` is a **number** , returns the number in the [D3 format](https://github.com/d3/d3-format#locale_format) matching the `formatStr` parameter (default ‘,.6’). When used in a dashboard, this will use the current browser locale when formatting.

So, you should be able to get what you’re after with the following helper:

```auto
{{format value ',.2f'}}

```

You can use our in-app template tester to try this yourself and also to check other d3 format strings:

 ![Screen Shot 2022-06-10 at 8.42.40 AM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/b/b0da745e3c2b797394e0a4b161eab9586d3a6739.png)

Let us know if you have any other questions, and again, welcome to Losant!
