Das ist richtig. Laut Topic will er's aber für Fließkommazahlen wissen. Also z.B.

Code:
float remainder = fmod(42.3, 7.6);