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
23
S
6
Posts: 21
Reputation: 1,346

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,126

Post » Wed Apr 13, 2016 7:44 pm

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


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 32 guests