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
»
Percentage via "Add Int" action?
« previous
next »
Print
Pages: [
1
]
Go Down
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?
Logged
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.
Logged
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
Percentage via "Add Int" action?