playMaker

Author Topic: how i can flip float negative to positive[SOLVED]  (Read 3148 times)

eotiti

  • Junior Playmaker
  • **
  • Posts: 65
how i can flip float negative to positive[SOLVED]
« 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!
« Last Edit: May 09, 2014, 02:58:26 AM by jeanfabre »

Martin-Vaupell

  • Junior Playmaker
  • **
  • Posts: 70
  • Creating CarbonDiOxide
    • Evisystems
Re: how i can flip float negative to positive
« Reply #1 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 
« Last Edit: May 08, 2014, 12:46:34 PM by Martin-Vaupell »

eotiti

  • Junior Playmaker
  • **
  • Posts: 65
Re: how i can flip float negative to positive
« Reply #2 on: May 08, 2014, 09:20:55 PM »
Thank you so much Martin !  ;)