# Round to the nearest 0.5 expression?

**URL:** <https://forum.inductiveautomation.com/t/round-to-the-nearest-0-5-expression/14083>\
**Category:** Ignition\
**Created:** [April 19, 2017, 2:52pm UTC](https://forum.inductiveautomation.com/t/round-to-the-nearest-0-5-expression/14083 "2017-04-19T14:52:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Justin](https://forum.inductiveautomation.com/u/Justin)\
**Post date:** [April 19, 2017, 2:52pm UTC](https://forum.inductiveautomation.com/t/round-to-the-nearest-0-5-expression/14083/1 "2017-04-19T14:52:17Z")

</div>

Is it possible to round a tag float value to the nearest 0.5?  
This doesn’t do the job: round(tagvalue, 0.5)

Example: 6.73 would need to be rounded with the result of 6.5

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [April 19, 2017, 3:29pm UTC](https://forum.inductiveautomation.com/t/round-to-the-nearest-0-5-expression/14083/2 "2017-04-19T15:29:28Z")

</div>

```
round(tagvalue * 2) / 2

```

should do the trick
