# Precision, units not preserved when using if-then-else

**URL:** <https://community.glideapps.com/t/precision-units-not-preserved-when-using-if-then-else/32745>\
**Category:** Report a Bug\
**Created:** [October 7, 2021, 3:17am UTC](https://community.glideapps.com/t/precision-units-not-preserved-when-using-if-then-else/32745 "2021-10-07T03:17:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [October 7, 2021, 3:17am UTC](https://community.glideapps.com/t/precision-units-not-preserved-when-using-if-then-else/32745/1 "2021-10-07T03:17:39Z")

</div>

I think this one has been reported before, but this is a really clear (I think) example that I just bumped into this morning:

 ![Screen Shot 2021-10-07 at 11.08.32 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/2/e29496e45b18a5cde8f5e2426b3a46a5dc39b0b6.png)

In the above example:

- `temp_lower_limit` is just a basic number column
- `mth/lower-f` converts it to fahrenheit, and changes the units from C to F
- `tp/lower-display-f` combines the 2 using a template
- `ite/lower-display` applies logic to decide which column to use for display purposes:
  - If temp unit is C, then use the original (`temp_lower_unit`)
  - Else use the template with the converted value in parentheses

The issue is that the precision and units are stripped from the original value when its passed through the if-then-else column (3rd row).

The workaround is to add _another_ template column just to lock the formatting of the original, and use that in the if-then-else, ie…

 ![Screen Shot 2021-10-07 at 11.10.30 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/1/312b841d27e92732f2bfd1b9b1bae43817f69aad.png)

but… ugh 🤢

@Jason

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [November 6, 2021, 10:27pm UTC](https://community.glideapps.com/t/precision-units-not-preserved-when-using-if-then-else/32745/2 "2021-11-06T22:27:57Z")

</div>

Closing due to inactivity. This topic will be deleted in a few weeks if there are no more comments.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [November 6, 2021, 10:27pm UTC](https://community.glideapps.com/t/precision-units-not-preserved-when-using-if-then-else/32745/3 "2021-11-06T22:27:57Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [December 6, 2021, 10:28pm UTC](https://community.glideapps.com/t/precision-units-not-preserved-when-using-if-then-else/32745/4 "2021-12-06T22:28:03Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [December 6, 2021, 10:28pm UTC](https://community.glideapps.com/t/precision-units-not-preserved-when-using-if-then-else/32745/5 "2021-12-06T22:28:03Z")

</div>


