playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Using fractions/decimal numbers with an int operator
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Using fractions/decimal numbers with an int operator (Read 939 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?
Logged
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Using fractions/decimal numbers with an int operator