in reply to mod function
That is the mod function. Or at least the mod operator. What problems are you having?