How do I round a number to the nearest multiple of 32?

Get help using Construct 2

Post » Wed Apr 13, 2016 6:43 pm

Example, I have a number that is 33.5, How do I make this 32? But if it were something as in 70 it would be 64? 130->128,260->256,ect.
B
21
S
6
Posts: 21
Reputation: 1,296

Post » Wed Apr 13, 2016 6:56 pm

Something like: round(x / 32) * 32, x being the number you want to round.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,116

Post » Wed Apr 13, 2016 7:44 pm

Worked. Thanks!
B
21
S
6
Posts: 21
Reputation: 1,296


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 9 guests