# How to divide float in Unreal 5 Preview 2?

**URL:** <https://forums.unrealengine.com/t/how-to-divide-float-in-unreal-5-preview-2/510232>\
**Category:** Blueprint\
**Tags:** variables, Variable, unreal-engine, UE5-0, Blueprint, question\
**Created:** [March 28, 2022, 3:23am UTC](https://forums.unrealengine.com/t/how-to-divide-float-in-unreal-5-preview-2/510232 "2022-03-28T03:23:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lehuan5062](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lehuan5062](https://forums.unrealengine.com/u/lehuan5062)\
**Post date:** [March 28, 2022, 3:23am UTC](https://forums.unrealengine.com/t/how-to-divide-float-in-unreal-5-preview-2/510232/1 "2022-03-28T03:23:04Z")

</div>

Hello, I can’t divide a float variable in UE5 Preview 2.  
“No matching divide function for float”?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/c/56cc158d4adbf77ccce5f74061eaf12bcb0485e3.png)

---

<div class="post-metadata">

**Author:** ![lehuan5062](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lehuan5062](https://forums.unrealengine.com/u/lehuan5062)\
**Post date:** [March 28, 2022, 3:25am UTC](https://forums.unrealengine.com/t/how-to-divide-float-in-unreal-5-preview-2/510232/2 "2022-03-28T03:25:33Z")

</div>

Workaround:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/9/5f94e66a50f21289c1fdecb59b408e6355e76b15.png)

---

<div class="post-metadata">

**Author:** ![Syedhs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Syedhs](https://forums.unrealengine.com/u/Syedhs)\
**Post date:** [March 28, 2022, 5:32am UTC](https://forums.unrealengine.com/t/how-to-divide-float-in-unreal-5-preview-2/510232/3 "2022-03-28T05:32:53Z")

</div>

You can also use Math Expression I think

---

<div class="post-metadata">

**Author:** ![n00b\_013](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/n00b_013/32/631138_2.png) [@n00b\_013](https://forums.unrealengine.com/u/n00b_013)\
**Post date:** [March 28, 2022, 5:43am UTC](https://forums.unrealengine.com/t/how-to-divide-float-in-unreal-5-preview-2/510232/4 "2022-03-28T05:43:08Z")

</div>

You can convert them into single precision by right click \> convert float to double (or the other way around).

It’s an extra step, but it’s possible for sure.

---

<div class="post-metadata">

**Author:** ![Sifen4K](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sifen4k/32/600599_2.png) [@Sifen4K](https://forums.unrealengine.com/u/Sifen4K)\
**Post date:** [March 28, 2022, 10:12am UTC](https://forums.unrealengine.com/t/how-to-divide-float-in-unreal-5-preview-2/510232/5 "2022-03-28T10:12:00Z")

</div>

It’s a bug in cuz UE5 support double precision first time in blueprint.  
To use any operate node, it can’t cast auto, should “To double”, then divide or add…(see pics)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/1/58174ffaf8efc16776eab65e5b4fac8c8b6a6156.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/5/775d585a0052abd902d650f2e8d7ce4826527e74.png)  
I think this will be fixed by Epic.

---

<div class="post-metadata">

**Author:** ![lehuan5062](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lehuan5062](https://forums.unrealengine.com/u/lehuan5062)\
**Post date:** [March 28, 2022, 10:30am UTC](https://forums.unrealengine.com/t/how-to-divide-float-in-unreal-5-preview-2/510232/6 "2022-03-28T10:30:35Z")

</div>

Thank you all for sharing but the workaround works just fine!
