+// Doxygen does not recognize this as the same function as in the header...
+//! \cond
+FloatingPointTolerance
+relativeToleranceAsFloatingPoint(double magnitude, double tolerance)
+{
+ const double absoluteTolerance = magnitude * tolerance;
+ return FloatingPointTolerance(absoluteTolerance, absoluteTolerance,
+ relativeToleranceToUlp<float>(tolerance),
+ relativeToleranceToUlp<double>(tolerance),
+ false);
+}
+//! \endcond
+