Refactor flo_mod func in numeric.c

It is unnecessary to assign values to temporary variables.