# Round up or down an expression

**URL:** <https://community.tulip.co/t/round-up-or-down-an-expression/2692>\
**Category:** Support, Troubleshooting, & Help\
**Created:** [May 11, 2021, 1:32pm UTC](https://community.tulip.co/t/round-up-or-down-an-expression/2692 "2021-05-11T13:32:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://community.tulip.co/u/Guillaume)\
**Post date:** [May 11, 2021, 1:32pm UTC](https://community.tulip.co/t/round-up-or-down-an-expression/2692/1 "2021-05-11T13:32:59Z")

</div>

Hello,

It will be a good idea to have an option on the function ROUND().

Indeed, i create an app to help operators to receive purchase order. In my process, i have to label my products, but they can be packed by 5pc, 10pc… So i calculate how many labels i have to print.  
_For example: i receive 16 tools and they are packed by 10 units, so i have to print 2 labels (ROUNDUP(16/2),0)_

Do you have any idea to do this currently easily ?

Thanks  
Guillaume

---

<div class="post-metadata">

**Author:** ![gio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/gio/32/82_2.png) [@gio](https://community.tulip.co/u/gio)\
**Post date:** [May 11, 2021, 1:43pm UTC](https://community.tulip.co/t/round-up-or-down-an-expression/2692/2 "2021-05-11T13:43:13Z")

</div>

hello @Guillaume, that’s a great question!!

one way to solve this could be to add an If Condition that checks if there are decimals when dividing number of tools by packed by and adding 1 if so.

here’s a quick example. as you can see, if there is a decimal (meaning there is a non-full box) the Trigger adds 1 to the output while using the `ROUND()` function:

 ![Screen Shot](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/c/c587c98d114488c99fc9ed3445ca92aa1a0ad03e.jpeg)

otherwise, it simply divides the number of tools by packed by:

 ![Screen Shot 1](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/c/c023154f5fee92eeef217eca78c8034c2b140782.jpeg)

as you can see here, we’ll need to print 3 labels regardless is third box is full or not:

 ![Screen Shot 2](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/d/d6c422a8e2258c90e989251788407c75216ac722.jpeg)  
 ![Screen Shot 3](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/1/1fcc9026138cfef1b7aff830e5a96a48c3cd9d26.jpeg)

would this work as a solution for you?? let me know if I misunderstood something!!
