playMaker

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

4ppleseed

  • Full Member
  • ***
  • Posts: 226
Add/Minus Float Percentages
« on: February 28, 2014, 02: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: 2511
  • Mender of the past
    • Cleverous
Re: Add/Minus Float Percentages
« Reply #1 on: February 28, 2014, 04: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%.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D