MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / WithinUlpsMatcher

Class WithinUlpsMatcher

unittests/catch.hpp:2376–2384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2374 };
2375
2376 struct WithinUlpsMatcher : MatcherBase<double> {
2377 WithinUlpsMatcher(double target, int ulps, FloatingPointKind baseType);
2378 bool match(double const& matchee) const override;
2379 std::string describe() const override;
2380 private:
2381 double m_target;
2382 int m_ulps;
2383 FloatingPointKind m_type;
2384 };
2385
2386 } // namespace Floating
2387

Callers 1

WithinULPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected