Adjusted code to account for non-constant floor() in MSVC