MCPcopy Create free account
hub / github.com/comaps/comaps / NextFloat

Function NextFloat

libs/base/base_tests/math_test.cpp:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15// Returns the next representable floating point value without using conversion to integer.
16template <typename Float>
17Float NextFloat(Float const x, int dir = 1)
18{
19 return boost::math::float_advance(x, dir);
20}
21
22template <typename Float>
23void TestMaxULPs()

Callers 2

TestMaxULPsFunction · 0.85
UNIT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected