# Positive to negative numbers

**URL:** <https://forum.kirupa.com/t/positive-to-negative-numbers/213438>\
**Category:** flash\
**Created:** [January 19, 2007, 4:16pm UTC](https://forum.kirupa.com/t/positive-to-negative-numbers/213438 "2007-01-19T16:16:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablo\_2006](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@pablo\_2006](https://forum.kirupa.com/u/pablo_2006)\
**Post date:** [January 19, 2007, 4:16pm UTC](https://forum.kirupa.com/t/positive-to-negative-numbers/213438/1 "2007-01-19T16:16:07Z")

</div>

Whats the best way to flip variable:Number polarity from + to - and back.

Is there an actual [COLOR=blue]method[/COLOR], or do you just assign the var to itself…

eg…

speed = 5;  
speed = -speed
