# UDT Parameter math is not evaluating correctly

**URL:** <https://forum.inductiveautomation.com/t/udt-parameter-math-is-not-evaluating-correctly/47911>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [June 17, 2021, 5:41pm UTC](https://forum.inductiveautomation.com/t/udt-parameter-math-is-not-evaluating-correctly/47911 "2021-06-17T17:41:42Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![stra](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/stra/32/23678_2.png) [@stra](https://forum.inductiveautomation.com/u/stra)\
**Post date:** [May 25, 2022, 1:32pm UTC](https://forum.inductiveautomation.com/t/udt-parameter-math-is-not-evaluating-correctly/47911/15 "2022-05-25T13:32:42Z")

</div>

are you sure I try and this does not work for me…  
what I see:  
{PATH}.Alarm[{POS/16|#}].{POS%16}  
if pos is \<=8 the result is 0  
if POS \> 8 the result is 1 …

I already make another discussion but I think is better to reopen this  
[https://forum.inductiveautomation.com/t/udt-parameters-division/59989](https://forum.inductiveautomation.com/t/udt-parameters-division/59989)

---

_[View the full topic](https://forum.inductiveautomation.com/t/udt-parameter-math-is-not-evaluating-correctly/47911)._
