Jump to content

[SOLVED] Finding when a number is on 10,20,30 100 etc


Fog Juice

Recommended Posts

Is there a way to use the mod function so that it only returns 1 when ever a variable is on an increment of 10? So for example if a variable has reached 10, 20, 30, 100, 200, 1000 etc, is there a way to use mod to have it either return 1 if it is or 0 if it is not?

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.