Computes the modulus (remainder) of two inputs. For each component of the result, some integral (whole-number) multiple, ...

Computes the modulus (remainder) of two inputs. For each component of the result, some integral (whole-number) multiple, m, of the corresponding component of the second input is subtracted from the corresponding component of the first input, leaving a remainder. The multiple, m, is chosen such that the remainder is less than the corresponding component of the second input and has the same sign as the corresponding component of the first input. For example, fmod(-3.14, 1.5) is -0.14.