playMaker

Author Topic: Using fractions/decimal numbers with an int operator  (Read 923 times)

spicyasian128

  • Playmaker Newbie
  • *
  • Posts: 18
Using fractions/decimal numbers with an int operator
« on: May 06, 2018, 08:13:04 PM »
Is it possible to use a decimal number with an int operator? I want to use an operator to multiply one of my values by 1.1 up to 1.5 for use as a damage stat in my game, but it doesn't seem like I can input decimals. Is there a workaround for this outside of dividing a different number to get that point?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Using fractions/decimal numbers with an int operator
« Reply #1 on: May 07, 2018, 02:50:57 AM »
Hi,

 yes, turn your int into a float using the action ConvertIntToFloat, then you can do float operations.

 Bye,

 Jean