playMaker

Author Topic: Percentage via "Add Int" action?  (Read 1895 times)

vyn_halcyon

  • Playmaker Newbie
  • *
  • Posts: 9
Percentage via "Add Int" action?
« on: June 13, 2015, 12:40:05 AM »
Can one throw in a " *0.25 " (turn it to 25% of it's overall value) into the "Add Int" slot, and actually have it work?

If not, are there any actions that work with percentages?

Kirdissir14

  • Playmaker Newbie
  • *
  • Posts: 12
Re: Percentage via "Add Int" action?
« Reply #1 on: June 14, 2015, 06:44:28 AM »
Why don't you simply convert your int into float? If you need it back to int again, convert from float to int and select the rounding method for your whole numbers.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Percentage via "Add Int" action?
« Reply #2 on: June 15, 2015, 03:54:27 AM »
Hi,

 Indeed you should work with float here, and simply after "Add Float" action, add a "multiply Float" and you'll get your result.

 Bye,

 Jean