# Show float value with no decimals or commas

**URL:** <https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [June 28, 2023, 6:58pm UTC](https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667 "2023-06-28T18:58:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [June 28, 2023, 6:58pm UTC](https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667/1 "2023-06-28T18:58:50Z")

</div>

I am creating an Ignition program from an existing plc. I am reading in a float value. I want to show this value with no decimals and no comma if the value gets that high. I am using vision and have tried putting the value into a label expression. I am having no luck. The tag itself is a UDT tag and I have tried to change the format for this tag but it does not seem to be doing anything to change it.

Here is my UDT value along with the format expression set to 0 with no decimal points:

 ![Capture062823-1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/a/9aa0d79accf322ad6cef655ca6b777df4c8afa29.png)

Here is my label expression where I am combining text and the value itself along with what I am seeing below:

 ![Capture062823-2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/c/2c4fe4b9cf05d364315b773074f3a5b87aaefb21.png)

I want it to show \> 99, not \> 99.0.

Side note on this, I have other values where I feel I will run into the same issue. Even with values coming in as float I want to show most of them with no decimal points. I was thinking I could get slick and add a UDT parameter where depending on the parameter value I can change what the format of the value will be. Anyone do something like this or have any other thoughts? Thanks

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [June 28, 2023, 7:07pm UTC](https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667/2 "2023-06-28T19:07:06Z")

</div>

Did you try the Expression Language's **dateFormat()** function?

[https://docs.inductiveautomation.com/display/DOC81/dateFormat](https://docs.inductiveautomation.com/display/DOC81/dateFormat)

Note that you can split your expressions across multiple lines for ease of reading.

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [June 28, 2023, 7:09pm UTC](https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667/3 "2023-06-28T19:09:52Z")

</div>

Its not a date, just a simple float (real) value coming in

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [June 28, 2023, 7:13pm UTC](https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667/4 "2023-06-28T19:13:26Z")

</div>

I think @Transistor meant numberFormat

[https://docs.inductiveautomation.com/display/DOC81/numberFormat](https://docs.inductiveautomation.com/display/DOC81/numberFormat)

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [June 28, 2023, 7:17pm UTC](https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667/5 "2023-06-28T19:17:10Z")

</div>

Ah ok, that makes more sense. I'll check it out

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [June 28, 2023, 7:26pm UTC](https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667/6 "2023-06-28T19:26:06Z")

</div>

Thanks transistor! Got me on the right track

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [June 29, 2023, 1:15pm UTC](https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667/7 "2023-06-29T13:15:11Z")

</div>

It worked great except I still see a comma when the value is at or greater than 1000. Anyway I could not show a comma?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [June 29, 2023, 1:16pm UTC](https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667/8 "2023-06-29T13:16:13Z")

</div>

What format are you using?

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [June 29, 2023, 1:17pm UTC](https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667/9 "2023-06-29T13:17:55Z")

</div>

Its a float value. Formatted it to show no decimals but still showing comma.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [June 29, 2023, 1:18pm UTC](https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667/10 "2023-06-29T13:18:59Z")

</div>

> [@JordanCClark](#):
>
> What format are you using?

Thus, the question. 😉

---

<div class="post-metadata">

**Author:** ![michael.black](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@michael.black](https://forum.inductiveautomation.com/u/michael.black)\
**Post date:** [June 29, 2023, 1:20pm UTC](https://forum.inductiveautomation.com/t/show-float-value-with-no-decimals-or-commas/75667/11 "2023-06-29T13:20:00Z")

</div>

I got it. Missed the Number Format Pattern. Once I put that to #0 it shows up correctly
