playMaker

Author Topic: Multiple float compare  (Read 4181 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Multiple float compare
« on: March 22, 2015, 05:01:37 PM »
An action that check if any number of floats are equals or not to a general tolerance or a positive/negative tolerance with a key float combined with bool and events based on result.

Tolerance explanation
simple tolerance = number above or below the floats. Main float is 5 - tolerance is 1 = 6 and 4 float incl in the compare check. If tolerance is set to 0, the action will use the pos and neg tolerance. Leave all tolerance to 0 to turn it off.
Positive tolerance = number above(+) the floats. Main float is 5 - tolerance is 1 = 6 is only incl in the compare check.
Negative tolerance = number below(-) the floats. Main float is 5 - tolerance is 1 = 4 is only incl in the compare check.

Useful for controlling how much tolerance below or above the key number you want. When in play mode, in the action, in the tolerance section, the on/off text will change to avoid spending debug time. Use events or bools or both based on result.

Update: action + updates are on ecosystem or https://snipt.net/dudebxl/

Hope it help someone..
« Last Edit: May 31, 2015, 05:33:15 PM by dudebxl »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Multiple float compare
« Reply #1 on: March 23, 2015, 02:16:47 AM »
Hi,

 nice nice nice! Really appreciate the effort in the interface layout.

Can I put them on the Ecosystem?


 Bye,

 Jean

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: Multiple float compare
« Reply #2 on: March 23, 2015, 07:13:53 AM »
Hi,

Of course, please do..  ;D

thx