# Trim decimals

**URL:** <https://forum.inductiveautomation.com/t/trim-decimals/7332>\
**Category:** Ignition\
**Created:** [September 26, 2013, 9:09pm UTC](https://forum.inductiveautomation.com/t/trim-decimals/7332 "2013-09-26T21:09:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fivecents](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@fivecents](https://forum.inductiveautomation.com/u/fivecents)\
**Post date:** [September 26, 2013, 9:09pm UTC](https://forum.inductiveautomation.com/t/trim-decimals/7332/1 "2013-09-26T21:09:37Z")

</div>

How do you trim/truncate decimals in a LED display?  
I tried changing the Number Format Pattern to ## but when project is run in vision client it still display 2 places of decimal.

---

<div class="post-metadata">

**Author:** ![RRRancher](https://avatars.discourse-cdn.com/v4/letter/r/c67d28/32.png) [@RRRancher](https://forum.inductiveautomation.com/u/RRRancher)\
**Post date:** [September 26, 2013, 10:13pm UTC](https://forum.inductiveautomation.com/t/trim-decimals/7332/2 "2013-09-26T22:13:23Z")

</div>

You can click on the % sign in the Number Format Pattern property and select preset patterns there. The first one, #,##0 is the one it seems is typically used for no decimal places showing. It also gives you the comma to separate groups of three digits to the left of the decimal place so 12345678 would appear as 12,345,678.

A zero in the Number Format Pattern would also work, but would give no comma separator.

---

<div class="post-metadata">

**Author:** ![Robert.McKenzie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert.mckenzie/32/4134_2.png) [@Robert.McKenzie](https://forum.inductiveautomation.com/u/Robert.McKenzie)\
**Post date:** [September 26, 2013, 11:18pm UTC](https://forum.inductiveautomation.com/t/trim-decimals/7332/3 "2013-09-26T23:18:52Z")

</div>

When the number format pattern isn’t working, the most common reason is that it is bound to something. In the designer, is the ‘Number Format Pattern’ property bold? If so, you need to click on the binding icon and select the “No Binding” option.

---

<div class="post-metadata">

**Author:** ![fivecents](https://avatars.discourse-cdn.com/v4/letter/f/d9b06d/32.png) [@fivecents](https://forum.inductiveautomation.com/u/fivecents)\
**Post date:** [September 30, 2013, 9:24pm UTC](https://forum.inductiveautomation.com/t/trim-decimals/7332/4 "2013-09-30T21:24:33Z")

</div>

Thanks binding was selected.

---

<div class="post-metadata">

**Author:** ![Robert.McKenzie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert.mckenzie/32/4134_2.png) [@Robert.McKenzie](https://forum.inductiveautomation.com/u/Robert.McKenzie)\
**Post date:** [September 30, 2013, 9:38pm UTC](https://forum.inductiveautomation.com/t/trim-decimals/7332/5 "2013-09-30T21:38:47Z")

</div>

Great! I’m glad it worked.
