Check if number can be divided

Get help using Construct 2

Post » Tue May 22, 2012 6:45 pm

Is there a way to check if a number can be divided by 10? And the quotient is integer.

Thanks in advance.
B
41
S
11
G
5
Posts: 174
Reputation: 6,288

Post » Tue May 22, 2012 6:52 pm

To get the remainder from division you can use the % symbol.
So if you put yourValue%10=0 would return true if it was divisible by 10.
Image ImageImage
B
164
S
49
G
139
Posts: 7,972
Reputation: 92,410

Post » Tue May 22, 2012 7:09 pm

That's exactly what i want, thank you! :D
B
41
S
11
G
5
Posts: 174
Reputation: 6,288

Post » Mon Apr 03, 2017 6:29 pm

This was also an answer to what I just wondered... 4 years later. Searching is nice.
B
6
S
2
G
2
Posts: 31
Reputation: 887


Return to How do I....?

Who is online

Users browsing this forum: AllanR, rayray, RetroSpock and 10 guests