If $a or $b are not strings, you can get an error that fmod needs param 1 ($a) to be of type double. MS Excel does not fall over when you insert an empty string in MOD, so I'm guessing PHPExcel should do the same?
FIX #14