playMaker

Author Topic: Is there an action to find the difference between two numbers?  (Read 2946 times)

kenmarold

  • Playmaker Newbie
  • *
  • Posts: 14
Is there an action to find the difference between two numbers?
« on: December 16, 2015, 06:26:59 PM »
If I want to find the difference between -3.5 and 8.5 how would I do that in Playmaker?

craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 234
    • Haven Made
Re: Is there an action to find the difference between two numbers?
« Reply #1 on: December 16, 2015, 07:35:22 PM »
Should just need to subtract them :)

Here's one way to do it. It could probably be condensed down to a couple states, but  here's a few more to illustrate. I used integers to make the numbers cleaner, but it'll work for floats as well.

GIF


Grab


best!

terri

  • Sr. Member
  • ****
  • Posts: 386
    • terrivellmann.tumblr.com
Re: Is there an action to find the difference between two numbers?
« Reply #2 on: December 16, 2015, 09:20:49 PM »
here is an action that does craigz's logic on its own


craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 234
    • Haven Made
Re: Is there an action to find the difference between two numbers?
« Reply #3 on: December 16, 2015, 11:19:58 PM »
Ahh! Thanks Terri :D

Don't mind me... I'm just going to be taking this also.. :P

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Is there an action to find the difference between two numbers?
« Reply #4 on: December 16, 2015, 11:41:37 PM »
+ 1. To add to ecosystem..