answersLogoWhite

0

What does MOD function do?

User Avatar

Anonymous

11y ago
Updated: 8/20/2019

Although you didn't specify what programming language you are talking about - or perhaps Excel - this function usually calculates the remainder of a division. Here is some pseudocode that uses this to display a progress only once every 100 iterations; the asterisks are only to provide visual indentation:

counter = 0

for ... // some large loop goes here

* counter++

* if counter % 100 0

* * output "Progress report: " + counter + " records processed"

* end if

* // The rest of the loop goes here

end for

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What does the 'MOD' function do in Excel?

The MOD function finds a modulus. That is the remainder when you divide one number into another. So if you divide 10 by 3, you would get a remainder of 1. To do that with the MOD function, you enter it as: =MOD(10,3)


How do you reverse a MOD function in excel?

Ctrl Z


How can you use Excel to calculate the remainder of a division question?

By using the =MOD function.


Is any function in crystal report 7 is equivalent to mod function?

Crystal report 7 use : Reminder(num,denom) Ex: Remider(25,2) is equal to 25 Mod 2 By : Ranga Predeep (rangapradeep@ymail.com)


What do you mean by a mod function?

A modulo function finds the remainder term when you divide one number by another number. For example, if you divide 20 by 3 you're left with a remainder term of 2. So 20 mod 3 = 2. If you divide 21 by 3 you're left with no remainder term. So 21 mod 3 = 0.


What is mod in vb?

The mod function in Vb divides a number and shows the remainder as follows: 33 mod 10 = 3 because 33 divided by 10 = 3 remainder 3 42 mod 10 = 2 because 42 divided by 10 is 4 reminder 2 hope that helps


How do you make lightning in mine craft is it a mod?

The Single Player Commands mod has a function to use lightning. Check that out, but i saw it in a video and don't completely remember it. Hope I helped! :D


Can you make NPCs in Garry's mod using E2?

Nope, e2 has no function for that. You can always control them, though.


How do you use mods in condition zero if playing with bots?

AMX Mod X should still work with bots on the server. The problem is that bots only do their default function and usually do not follow the mod.


What are some good terraria mods?

Thorium mod, Calamity mod, Exodus mod, Fargo's mod, GRealm mod, Sacred tools mod, Spirit mod, and Temor mod.


What are some minecraft mods?

the too many items mod the batman mod the iron man mod the spiderman mod the butter mod the creepy pasta mod the slender mod the contagious zombie mod the battle gear mod the Aether mod the You are herobrine mod the herobrine experience mod the herobrine nightmare mod the trampoline mod the fire charge mod i may have not named all of them. please improve if you know one not listed


How do you find even and odd in Excel?

If you are referring to the Even and Odd functions, you can just start typing then or find them through the Math and Trig functions category. You can use the Insert Function button on the Formula Bar to do that. You can also do it through menus or tabs, depending on the version of Excel you have. To find out if an actual value is odd or even you could use the MOD function, which finds a remainder. If you divide by 2 and the remainder is 1 it is obviously odd, and if it is 0 then it is even. You use the MOD function like this, where the 2 is dividing into the first value, in this case 10: =MOD(10,2) It could also be used with a cell reference, like this, where it is using A15 as an example: =MOD(A15,2)