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

Method isProper

libraries/Fraction/fraction.cpp:262–265  ·  view source on GitHub ↗

fraction is proper if abs(fraction) < 1

Source from the content-addressed store, hash-verified

260
261// fraction is proper if abs(fraction) < 1
262bool Fraction::isProper()
263{
264 return abs(n) < abs(d);
265}
266
267
268// visualize fraction as an angle in degrees

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64