# UMG SpinBox gives wrong value

**URL:** <https://forums.unrealengine.com/t/umg-spinbox-gives-wrong-value/302620>\
**Category:** UI\
**Tags:** value, bug, unreal-engine, question, UMG\
**Created:** [December 29, 2014, 2:31pm UTC](https://forums.unrealengine.com/t/umg-spinbox-gives-wrong-value/302620 "2014-12-29T14:31:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flakky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flakky/32/918696_2.png) [@Flakky](https://forums.unrealengine.com/u/Flakky)\
**Post date:** [December 29, 2014, 2:31pm UTC](https://forums.unrealengine.com/t/umg-spinbox-gives-wrong-value/302620/1 "2014-12-29T14:31:13Z")

</div>

I’m trying to make drop count function for my inventory, but ran into a problem with spin box.

Ive setup spinbox’s delta to 1.0, so player can set only integer numbers, but when I press drop, value floors to the wrong number.

Here’s the video, that showing why it give wrong value:

[![]( " - YouTube") ](https://www.youtube.com/watch?v=GlRD06L66yg)

To me, I found the solution. On Value Changed \> Set “Value”. Than On Button Press \> Make something with “Value” in. That will give me the number I want, instead of what I get on video.

I think Epic should fix it. Or this isn’t a bug???

Oh, this happens in 4.7 Preview and 4.6.1 Release.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [December 29, 2014, 8:25pm UTC](https://forums.unrealengine.com/t/umg-spinbox-gives-wrong-value/302620/2 "2014-12-29T20:25:51Z")

</div>

Hello ,

I was able to reproduce this issue on my end. I have written up a report ( UE-7049) and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. I would suggest that you try using a “Round” node to get the result you are looking for. This solution worked for me. I hope it helps.

 ![25133-roundinghelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/d/4/8d4d8f37e1e39c802fdee5c9a4538451136e6f37.png)

Make it a great day

---

<div class="post-metadata">

**Author:** ![Flakky](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flakky/32/918696_2.png) [@Flakky](https://forums.unrealengine.com/u/Flakky)\
**Post date:** [December 29, 2014, 8:47pm UTC](https://forums.unrealengine.com/t/umg-spinbox-gives-wrong-value/302620/3 "2014-12-29T20:47:18Z")

</div>

Thank you for answering and reporting!

I solved that problem by another way, but still thank you! 🙂
