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

Method trunc

src/ap.cpp:1038–1039  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036{ return int(floor(x+0.5)); }
1037
1038int ap::trunc(double x)
1039{ return int(x>0 ? floor(x) : ceil(x)); }
1040
1041int ap::ifloor(double x)
1042{ return int(floor(x)); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected