Mod ???

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Willaim

Mod ???

Post by Willaim »

Hello people,
Anyone know what is "mod" used for (like mathematically)
in a calculation of the size of a disk.
For example:
3.5" Diskette 1.44 Mbytes
Sector/Track = 1 + ( 2879 mod 18 ) = 18
But what does the "mod" in the equation stands for
anyways? Please help, thanks.
Chase

RE:Mod ???

Post by Chase »

>On 2001-03-04 17:15:31, Willaim wrote:
> Anyone know what is "mod" used for
> Sector/Track = 1 + ( 2879 mod 18 ) = 18

"mod" stand for modulus(think I spelled that right)
mod gives you the remainder after division of the largest
possibly integer.

example: 2879/18=159 Remainder 17
Sector/Track = 1 + (17) = 18
Post Reply