Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: eotiti on May 08, 2014, 12:21:37 PM

Title: how i can flip float negative to positive[SOLVED]
Post by: eotiti on May 08, 2014, 12:21:37 PM
i have a float is : -2.5
how i can flip it to : 2.5

and vice versa ...

some one help me
Thank!
Title: Re: how i can flip float negative to positive
Post by: Martin-Vaupell on May 08, 2014, 12:27:29 PM
Multiply by -1

Use the action Float Operator

Float 1 : your number
Float 2 : -1
Operation : Multiply
Store Result : saveValueVar

-2.5 * -1 = 2.5
+2.5 * -1 = -2.5 
Title: Re: how i can flip float negative to positive
Post by: eotiti on May 08, 2014, 09:20:55 PM
Thank you so much Martin !  ;)