fmod(7.5,5);
ma va bene anche come hai detto tu