On the third update, it is now 2 / 10 which is still 0, with a remainder of 2. On the second update, it is now 1 / 10 which is still 0, with a remainder of 1. The result on the first update is 0 / 10 which is equal to 0 with a remainder of 0. When the skin is loaded or refreshed, the initial value of the measure will be 0. To use it as a counter, we use the current value of the measure as the dividend, and the highest number we want to count to as the divisor. For instance, 63 / 4 in long division is equal to 15 with a remainder of 3. The % modulo mathematical operator in Rainmeter simply means "the remainder" when two numbers are divided. Modulus math can be complicated in its explanation, as it used different ways in different contexts, but in the sense that we use it in a counter in Rainmeter, it is really pretty simple. The formula will use the % modulo mathematical operator. In Rainmeter, this is done by using a mathematical formula, normally but not exclusively in a Calc measure. This is useful in any number of circumstances, like displaying a series of images, delaying some action for some number of skin updates, anything where you want to say "create a loop from 1 to XX". One of the things that people often want to do is create a "loop" that counts up to a specific number, then starts over and repeats.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |