MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / relAccuracy

Method relAccuracy

libraries/Interval/Interval.cpp:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43
44float Interval::relAccuracy()
45{
46 if (value() == 0.0) return -1;
47 return abs(range() / value()); // TODO /2 ?
48}
49
50
51void Interval::setRange(float r)

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64