# How to format decimal?

**URL:** <https://community.weweb.io/t/how-to-format-decimal/16555>\
**Category:** How do I?\
**Created:** [February 16, 2025, 4:47am UTC](https://community.weweb.io/t/how-to-format-decimal/16555 "2025-02-16T04:47:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![endrigo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/endrigo/32/12472_2.png) [@endrigo](https://community.weweb.io/u/endrigo)\
**Post date:** [February 16, 2025, 4:47am UTC](https://community.weweb.io/t/how-to-format-decimal/16555/1 "2025-02-16T04:47:51Z")

</div>

How can I format a decimal with two places?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/c/c493245d3446dfd02c76db3918dd33d26a8dc863.png)

---

<div class="post-metadata">

**Author:** ![ishika](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/ishika/32/13250_2.png) [@ishika](https://community.weweb.io/u/ishika)\
**Post date:** [February 17, 2025, 6:01am UTC](https://community.weweb.io/t/how-to-format-decimal/16555/2 "2025-02-17T06:01:36Z")

</div>

Hey @endrigo,  
To format the input up to two decimal places, set the precision to ‘1.00’. The number of zeros beyond the decimal (.) here denotes the precision.

 ![CleanShot 2025-02-17 at 11.29.31@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/a/a85dec656d04872b541b4a44c391c3dca3501f6f.png)

Hope this works 🙂

---

<div class="post-metadata">

**Author:** ![endrigo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/endrigo/32/12472_2.png) [@endrigo](https://community.weweb.io/u/endrigo)\
**Post date:** [February 17, 2025, 3:16pm UTC](https://community.weweb.io/t/how-to-format-decimal/16555/3 "2025-02-17T15:16:42Z")

</div>

Hey @ishika ,

I did this, if you check the image I posted, you will see that it didn’t work.

---

<div class="post-metadata">

**Author:** ![Mael](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/mael/32/13246_2.png) [@Mael](https://community.weweb.io/u/Mael)\
**Post date:** [February 18, 2025, 11:03am UTC](https://community.weweb.io/t/how-to-format-decimal/16555/4 "2025-02-18T11:03:26Z")

</div>

Hello @endrigo, it seems to be a bug, could you create a ticket in our [support app](https://support.weweb.io/) please, we will fix it.

---

<div class="post-metadata">

**Author:** ![endrigo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/endrigo/32/12472_2.png) [@endrigo](https://community.weweb.io/u/endrigo)\
**Post date:** [February 18, 2025, 11:10pm UTC](https://community.weweb.io/t/how-to-format-decimal/16555/5 "2025-02-18T23:10:11Z")

</div>

Hello @Mael , ticket created.
