playMaker

Author Topic: Add/Minus Float Percentages  (Read 740 times)

4ppleseed

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Add/Minus Float Percentages
« on: February 28, 2014, 12:39:39 PM »
Hi guys,
I'd really like to see  a percentages/float action. Maybe something like:

Float A, add/minus XX%, stored as Float B

That possible?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2484
  • Yup.
    • View Profile
    • Cleverous
Re: Add/Minus Float Percentages
« Reply #1 on: February 28, 2014, 02:37:00 PM »
You can use multiply, and just define the amount from 1.0

So, for instance multiply 1000 by .92 will equal 920 which is also 92%. For increase, multiply by 1.15 and it would equal 1150 and you've added 15%.