# How to truncate a number or get the module of a division?

**URL:** <https://forums.unrealengine.com/t/how-to-truncate-a-number-or-get-the-module-of-a-division/1323986>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [October 6, 2023, 6:23am UTC](https://forums.unrealengine.com/t/how-to-truncate-a-number-or-get-the-module-of-a-division/1323986 "2023-10-06T06:23:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidpkami](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidpkami/32/1040403_2.png) [@davidpkami](https://forums.unrealengine.com/u/davidpkami)\
**Post date:** [October 6, 2023, 6:23am UTC](https://forums.unrealengine.com/t/how-to-truncate-a-number-or-get-the-module-of-a-division/1323986/1 "2023-10-06T06:23:31Z")

</div>

I am trying to get the module of a division, or, be able to truncate a number, but I am not finding any solution. Any ideas?

---

<div class="post-metadata">

**Author:** ![LloretMunoz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lloretmunoz/32/725856_2.png) [@LloretMunoz](https://forums.unrealengine.com/u/LloretMunoz)\
**Post date:** [October 6, 2023, 3:36pm UTC](https://forums.unrealengine.com/t/how-to-truncate-a-number-or-get-the-module-of-a-division/1323986/2 "2023-10-06T15:36:52Z")

</div>

to get the module of a division you can use de Mod call that you can find in the Verse.digest.verse.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/1/9/c19782f2feb00c6735d722f905d7044d47037be2.png)  
I show you an explample of it:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/4/2c4dd6a0dc29b6b01ec132f4975ecc91602ab6e7.png)  
The variable currentRound is an integer that represents the current round of my game, and i use this module to get if we are in a even or odd round.

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [October 6, 2023, 3:46pm UTC](https://forums.unrealengine.com/t/how-to-truncate-a-number-or-get-the-module-of-a-division/1323986/3 "2023-10-06T15:46:51Z")

</div>

Additionally, if you want to truncate, you could use one of those two functions

```auto
    Floor<native><public>(Val:float)<varies><decides>:int
    Int<native><public>(Val:float)<varies><decides>:int

```

I think the difference between the two is that `Floor[]` would work differently on a negative number, not sure though
