playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
how i can flip float negative to positive[SOLVED]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: how i can flip float negative to positive[SOLVED] (Read 3237 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
»
Logged
Martin-Vaupell
Junior Playmaker
Posts: 70
Creating CarbonDiOxide
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
»
Logged
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 !
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
how i can flip float negative to positive[SOLVED]