Windows fix

Fixes a build issue on MSVC ('floor' : ambiguous call to overloaded function)