Used approxEqual in unit tests so they will behave themesles on other architectures.