# Tank volume shows integer value but tag is set to a float

**URL:** <https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638>\
**Category:** Ignition\
**Tags:** database\
**Created:** [December 18, 2020, 6:31am UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638 "2020-12-18T06:31:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![PATIL](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@PATIL](https://forum.inductiveautomation.com/u/PATIL)\
**Post date:** [December 18, 2020, 6:31am UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638/1 "2020-12-18T06:31:06Z")

</div>

Hi,  
i need help tank volume shows in floating point means after decimal but its still showing in real number

---

<div class="post-metadata">

**Author:** ![PATIL](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@PATIL](https://forum.inductiveautomation.com/u/PATIL)\
**Post date:** [December 18, 2020, 6:32am UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638/2 "2020-12-18T06:32:07Z")

</div>

someone can help me please

---

<div class="post-metadata">

**Author:** ![PATIL](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@PATIL](https://forum.inductiveautomation.com/u/PATIL)\
**Post date:** [December 18, 2020, 6:51am UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638/3 "2020-12-18T06:51:14Z")

</div>

Hi

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [December 18, 2020, 7:42am UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638/4 "2020-12-18T07:42:35Z")

</div>

I’m not sure what you’re asking. Can you give us some more info–maybe a screenshot–of what’s wrong?

---

<div class="post-metadata">

**Author:** ![PATIL](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@PATIL](https://forum.inductiveautomation.com/u/PATIL)\
**Post date:** [December 18, 2020, 7:44am UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638/5 "2020-12-18T07:44:35Z")

</div>

tank volume already selected as floating but still shown in integer e.g. volume 41 % but i need 41.11 %

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 18, 2020, 10:40am UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638/6 "2020-12-18T10:40:05Z")

</div>

How are you displaying the tag value? Inside of a numeric label? Have you checked the display format on the component? It should be `#,##0.00` or similar. Also, you tagged “database”, so is this value coming in from a database? Is the value in the database table a float?

---

<div class="post-metadata">

**Author:** ![PATIL](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@PATIL](https://forum.inductiveautomation.com/u/PATIL)\
**Post date:** [December 29, 2020, 4:36am UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638/7 "2020-12-29T04:36:02Z")

</div>

thank you but one request how to write tag expression i want to calculate tank volume from tank level  
e.g. {[.]MIXT LEVEL}\*3 but still showing in integer format i need in floating format tank volume display

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 29, 2020, 9:26am UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638/8 "2020-12-29T09:26:55Z")

</div>

Try multiplying by 3.0 instead

---

<div class="post-metadata">

**Author:** ![PATIL](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@PATIL](https://forum.inductiveautomation.com/u/PATIL)\
**Post date:** [December 29, 2020, 9:53am UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638/9 "2020-12-29T09:53:35Z")

</div>

Sir, I already try multiply 3.0 in place of 3 but same i need to show tank volume in floating point line 41.11 %

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 29, 2020, 12:25pm UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638/10 "2020-12-29T12:25:20Z")

</div>

Well you still haven’t answered any of my initial questions 🤔 bit hard to help without more info

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [December 29, 2020, 4:20pm UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638/11 "2020-12-29T16:20:04Z")

</div>

@PATIL, please confirm what you have for your display format. A screenshot showing your configuration would be good.

> [@nminchin](#):
>
> Have you checked the display format on the component? It should be `#,##0.00` or similar.

---

<div class="post-metadata">

**Author:** ![Priyanka.Khandge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/priyanka.khandge/32/35989_2.png) [@Priyanka.Khandge](https://forum.inductiveautomation.com/u/Priyanka.Khandge)\
**Post date:** [March 18, 2021, 5:16am UTC](https://forum.inductiveautomation.com/t/tank-volume-shows-integer-value-but-tag-is-set-to-a-float/41638/12 "2021-03-18T05:16:33Z")

</div>

This solution also helped me. Thank you @nminchin.
