coerce to float before comparison

This change is important because it seems the constant `MACOS_VERSION` is now a
`String`; whereas the code is expecting a `Float`.