MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / round_f

Method round_f

src/ap.cpp:1035–1036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1033{ return rand()%maxv; }
1034
1035int ap::round_f(double x)
1036{ return int(floor(x+0.5)); }
1037
1038int ap::trunc(double x)
1039{ return int(x>0 ? floor(x) : ceil(x)); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected