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
39
S
11
G
5
Posts: 174
Reputation: 6,231

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 Image
B
164
S
49
G
111
Posts: 7,621
Reputation: 77,941

Post » Tue May 22, 2012 7:09 pm

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


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Asmodean and 1 guest