# Numeric Format

**URL:** <https://forum.inductiveautomation.com/t/numeric-format/3110>\
**Category:** Ignition\
**Created:** [July 19, 2011, 2:42pm UTC](https://forum.inductiveautomation.com/t/numeric-format/3110 "2011-07-19T14:42:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![melegazzi](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@melegazzi](https://forum.inductiveautomation.com/u/melegazzi)\
**Post date:** [July 19, 2011, 2:42pm UTC](https://forum.inductiveautomation.com/t/numeric-format/3110/1 "2011-07-19T14:42:39Z")

</div>

Hello;  
I need to know how to show the value for example 500 in this format: 50,0.  
If I use this Number format pattern “#.##” I see correctly 5,00.  
Then I thought: If I set it properly ##.# I’ll see 50.0. But no I see 5.0.0  
Can anyone help me? What’s wrong?  
Thank you very much.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 19, 2011, 3:14pm UTC](https://forum.inductiveautomation.com/t/numeric-format/3110/2 "2011-07-19T15:14:47Z")

</div>

You’ll probably need to scale the value to 50 before you apply a number format to it.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [July 19, 2011, 3:19pm UTC](https://forum.inductiveautomation.com/t/numeric-format/3110/3 "2011-07-19T15:19:57Z")

</div>

You should try:`numberFormat(500/10.0, "##.00")`

---

<div class="post-metadata">

**Author:** ![melegazzi](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@melegazzi](https://forum.inductiveautomation.com/u/melegazzi)\
**Post date:** [July 28, 2011, 1:13pm UTC](https://forum.inductiveautomation.com/t/numeric-format/3110/4 "2011-07-28T13:13:00Z")

</div>

Thanks at all for the response.  
But, If I scale 0 - 10,0 I miss one decimal point and then the data resolution.  
Is there an other way.  
Thank you very much.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [July 29, 2011, 1:38am UTC](https://forum.inductiveautomation.com/t/numeric-format/3110/5 "2011-07-29T01:38:54Z")

</div>

The only other way would be to write a function in scripting that can format the text.

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [July 29, 2011, 11:13pm UTC](https://forum.inductiveautomation.com/t/numeric-format/3110/6 "2011-07-29T23:13:16Z")

</div>

I’m not sure I understand what you mean about losing precision. The format can have any number of “0” in order to require that the values be shown. For example, extending Travis’ example, you can show one more value after the decimal by using:

```auto
numberFormat(500/10.0, "##.000")
```

Perhaps I don’t understand correctly what you want, though.

Regards,
