# Blueprint Fvector2D(20000, 20000)/2 = 0???

**URL:** <https://forums.unrealengine.com/t/blueprint-fvector2d-20000-20000-2-0/1586802>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, bug-report, Blueprint, question, vector-math\
**Created:** [January 4, 2024, 6:41am UTC](https://forums.unrealengine.com/t/blueprint-fvector2d-20000-20000-2-0/1586802 "2024-01-04T06:41:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimplestWay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SimplestWay](https://forums.unrealengine.com/u/SimplestWay)\
**Post date:** [January 4, 2024, 6:41am UTC](https://forums.unrealengine.com/t/blueprint-fvector2d-20000-20000-2-0/1586802/1 "2024-01-04T06:41:10Z")

</div>

I don’t know why, another unreal bug, I can’t reproduct in my test project but the print value is 20000/2=0 lol

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/d/c3dcdec2f8a744ca9d79f764ed8ece558d8fbc83.jpeg)

---

<div class="post-metadata">

**Author:** ![SimplestWay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SimplestWay](https://forums.unrealengine.com/u/SimplestWay)\
**Post date:** [January 4, 2024, 6:50am UTC](https://forums.unrealengine.com/t/blueprint-fvector2d-20000-20000-2-0/1586802/2 "2024-01-04T06:50:06Z")

</div>

Ok, I can reproduce this bug now, because of the auto type converting, zero returned after division, you can reproduct this bug as following:

1. create a unreal project using UE5.2.
2. create a blueprint and type in the following codes in your begin play.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/b/9eb62a7c57b106204fe27077d7123b0153a590f0.png)
3. drag it into level and play, check the print string values.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/d/23d48c9799ab01f40cd2bbc2668f5dde3721f7ff.jpeg)

---

<div class="post-metadata">

**Author:** ![Arodi007](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arodi007/32/1022275_2.png) [@Arodi007](https://forums.unrealengine.com/u/Arodi007)\
**Post date:** [January 4, 2024, 7:59am UTC](https://forums.unrealengine.com/t/blueprint-fvector2d-20000-20000-2-0/1586802/3 "2024-01-04T07:59:33Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/a/9dab147f5b08a6ba18e2115ddc26a4d468ba9b51.png)

This happen because most likely, a vector is being divided by 0 so it return everything zero. (check your output log, it will show a warning division by zero)

The first one is just adding a z value 0.0  
The 2nd is missing the z axis so it diving by zero by default, same for the 3rd method where z=0.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 26, 2024, 3:15pm UTC](https://forums.unrealengine.com/t/blueprint-fvector2d-20000-20000-2-0/1586802/4 "2024-08-26T15:15:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
