Explicitly converting to double as MSVC can't work with fmod(int,int)
Merge pull request #13 from suttonpd/master

Explicitly converting to double as MSVC can't work with fmod(int,int)