FastLED 3.9.15
Loading...
Searching...
No Matches

◆ margin()

Approx & fl::test::Approx::margin ( double newMargin)
inline

Set absolute margin for comparison When margin > 0, passes if |a - b| <= margin.

Definition at line 414 of file fltest.h.

414 {
415 mMargin = newMargin < 0 ? 0 : newMargin;
416 return *this;
417 }
double mMargin
Definition fltest.h:479

References Approx(), FL_NOEXCEPT, and mMargin.

+ Here is the call graph for this function: