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

Function round_f

src/myFunc.cpp:1339–1341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1337}
1338
1339int round_f(float r) {
1340 return (r > 0.0) ? floor(r + 0.5) : ceil(r - 0.5);
1341}
1342//int round(double r) {
1343// return (r > 0.0) ? floor(r + 0.5) : ceil(r - 0.5);
1344//}

Callers 15

lrbuildsFunction · 0.85
lrbuildzsFunction · 0.85
lrunpackFunction · 0.85
lrprocessFunction · 0.85
lrrmserrorFunction · 0.85
lravgerrorFunction · 0.85
lravgrelerrorFunction · 0.85
lrcopyFunction · 0.85
lrserializeFunction · 0.85
lrunserializeFunction · 0.85
getBAFinfoFunction · 0.85
getCopyNumbersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected