# Negative Math Block

**URL:** <https://xrp.discourse.group/t/negative-math-block/506>\
**Category:** Blockly programming\
**Created:** [October 23, 2024, 5:59pm UTC](https://xrp.discourse.group/t/negative-math-block/506 "2024-10-23T17:59:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrumple](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@jrumple](https://xrp.discourse.group/u/jrumple)\
**Post date:** [October 23, 2024, 5:59pm UTC](https://xrp.discourse.group/t/negative-math-block/506/1 "2024-10-23T17:59:44Z")

</div>

In the next update, can you add a negative block to the Math tray?

When I went to build a Forward function and then a Backward function, I discovered there was no way to change the sign of the input variable. I was able to use a Subtract block to subtract the variable from 0, which does the trick. It is just cumbersome to read.

I’d like to have the same negative block that is available in FTC Blocks. Thanks.

---

<div class="post-metadata">

**Author:** ![Fgrossman](https://avatars.discourse-cdn.com/v4/letter/f/b77776/32.png) [@Fgrossman](https://xrp.discourse.group/u/Fgrossman)\
**Post date:** [October 24, 2024, 1:52am UTC](https://xrp.discourse.group/t/negative-math-block/506/2 "2024-10-24T01:52:12Z")

</div>

I guess it is a little hidden. It is the ‘square root’ block. You can drop down the 'square root" and select the negative.

---

<div class="post-metadata">

**Author:** ![jrumple](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@jrumple](https://xrp.discourse.group/u/jrumple)\
**Post date:** [October 24, 2024, 11:56pm UTC](https://xrp.discourse.group/t/negative-math-block/506/3 "2024-10-24T23:56:50Z")

</div>

Found it! Thanks for the help.

I’ll be sure to highlight this in my guide.
