Calculating checksum without the mod function
I'm using a proprietary language very similar to C, but doesn't have the mod function built in.. Here is what I would normally do to calc checksum:
mod( (sum( all ascii values) / 256) );
Does anyone know of an alternative to the mod function to get the remainder of a division operation?
Thanks,
D
|