# Math expression negative numbers?

**URL:** <https://forums.unrealengine.com/t/math-expression-negative-numbers/463634>\
**Category:** Community & Industry Discussion\
**Tags:** math, math-expression, unreal-engine, question\
**Created:** [April 11, 2020, 12:35pm UTC](https://forums.unrealengine.com/t/math-expression-negative-numbers/463634 "2020-04-11T12:35:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DDemon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDemon](https://forums.unrealengine.com/u/DDemon)\
**Post date:** [April 11, 2020, 12:35pm UTC](https://forums.unrealengine.com/t/math-expression-negative-numbers/463634/1 "2020-04-11T12:35:46Z")

</div>

So I used a lot of math and started to place it into math expression and made this simple example, is this supposed to be?

![299513-asd.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/d/f6dc6e5a45c86799635cae16772842bcb86fe8b7.png)

---

<div class="post-metadata">

**Author:** ![Vecherka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vecherka](https://forums.unrealengine.com/u/Vecherka)\
**Post date:** [April 11, 2020, 12:50pm UTC](https://forums.unrealengine.com/t/math-expression-negative-numbers/463634/2 "2020-04-11T12:50:40Z")

</div>

Hello DDemon,

the parser doesn’t handle unary operators very well (it simply doesn’t understand them (tested up to 4.24)), to solve it either use a variable input and set the necessary parts as a static input to the node, or perform your problematic operations separately from the math expression node.

Hope that helps. Might be worth reporting it as a bug, or as a feature request.

Regards,

Vecherka.

---

<div class="post-metadata">

**Author:** ![DDemon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DDemon](https://forums.unrealengine.com/u/DDemon)\
**Post date:** [April 11, 2020, 3:30pm UTC](https://forums.unrealengine.com/t/math-expression-negative-numbers/463634/3 "2020-04-11T15:30:51Z")

</div>

Doubt that it will happen but [link](https://forums.unrealengine.com/unreal-engine/feedback-for-epic/1744131-add-negative-numbers-to-math-expression)

---

<div class="post-metadata">

**Author:** ![tomotaco](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomotaco](https://forums.unrealengine.com/u/tomotaco)\
**Post date:** [July 14, 2026, 11:13am UTC](https://forums.unrealengine.com/t/math-expression-negative-numbers/463634/4 "2026-07-14T11:13:33Z")

</div>

Confirmed the problem still happens on UE5.8.  
One easy solution might be adding zero before the minus operator and make it working as binary operator.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/8/6c8e96d8b8cdc67f554c0080a1d20d7f82675dda.png)
