How do i avoid broken numbers?

So in my RPG i added movements that multipliquy your attack by 1.5, but like:
3 x 1.5 = 4.5
Is there a way i could turn this 4.5 into a 4?

1 Like

You could use the round() function.
Check out this page: Expressions reference [GDevelop wiki]

2 Likes

Thank you, that will help

1 Like

search for round function :wink:

1 Like