# Significant Figures

**URL:** <https://forum.inductiveautomation.com/t/significant-figures/7092>\
**Category:** General Discussion\
**Created:** [August 20, 2013, 5:04pm UTC](https://forum.inductiveautomation.com/t/significant-figures/7092 "2013-08-20T17:04:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![quinadler.hgst](https://avatars.discourse-cdn.com/v4/letter/q/c6cbf5/32.png) [@quinadler.hgst](https://forum.inductiveautomation.com/u/quinadler.hgst)\
**Post date:** [August 20, 2013, 5:04pm UTC](https://forum.inductiveautomation.com/t/significant-figures/7092/1 "2013-08-20T17:04:10Z")

</div>

Does anyone know how to limit the amount of sig figs that appear on any sort of Display widget? Labels, specifically?

---

<div class="post-metadata">

**Author:** ![Ron.Lor](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Ron.Lor](https://forum.inductiveautomation.com/u/Ron.Lor)\
**Post date:** [August 20, 2013, 11:51pm UTC](https://forum.inductiveautomation.com/t/significant-figures/7092/2 "2013-08-20T23:51:43Z")

</div>

Yes. In any label component that displays a numeric value, you can change the number format pattern in the property editor list. Expand the list to “All” and you should see a property called “Number Format Pattern”. The number of # symbols after the decimal will represent the number of sig figs you will have.

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [August 21, 2013, 11:40am UTC](https://forum.inductiveautomation.com/t/significant-figures/7092/3 "2013-08-21T11:40:55Z")

</div>

You can also use the numberFormat function if using an expression binding on the label. I do this a lot to display numbers in a string, example:

```auto
"The temperature is: " + numberFormat({path/to/tag}, "##0.0") + " °F"
```

---

<div class="post-metadata">

**Author:** ![quinadler.hgst](https://avatars.discourse-cdn.com/v4/letter/q/c6cbf5/32.png) [@quinadler.hgst](https://forum.inductiveautomation.com/u/quinadler.hgst)\
**Post date:** [August 21, 2013, 4:13pm UTC](https://forum.inductiveautomation.com/t/significant-figures/7092/4 "2013-08-21T16:13:59Z")

</div>

Hmm. That’s interesting, because I’m using a label called Circle\_value, Circle1\_value, etc. And when I check under the Property Editor when it’s set to All, there’s no property called “Format Number Pattern.” I know that this type of label can work with numbers, as this is what I’m having it do. Any reason why some of the properties would not show up under the property editor?

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [August 21, 2013, 4:19pm UTC](https://forum.inductiveautomation.com/t/significant-figures/7092/5 "2013-08-21T16:19:11Z")

</div>

Is it a Label or a Numeric Label? I don’t think regular Label components have a number format pattern value, you have to do it with the expression function.

---

<div class="post-metadata">

**Author:** ![quinadler.hgst](https://avatars.discourse-cdn.com/v4/letter/q/c6cbf5/32.png) [@quinadler.hgst](https://forum.inductiveautomation.com/u/quinadler.hgst)\
**Post date:** [August 21, 2013, 5:39pm UTC](https://forum.inductiveautomation.com/t/significant-figures/7092/6 "2013-08-21T17:39:44Z")

</div>

Oh I think it’s just a normal Label. But if I am doing a SQL query for the now-numeric label, can I do it with an expression function at the same time?

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [August 21, 2013, 5:51pm UTC](https://forum.inductiveautomation.com/t/significant-figures/7092/7 "2013-08-21T17:51:41Z")

</div>

You can if you create a custom property on the label and bind your SQL query to that. Then you can use the expression binding to reference the custom property that you just made and format it to the way you want it.

[attachment=1]CustomProperty1.png[/attachment]  
[attachment=0]CustomProperty2.png[/attachment]
