MCPcopy Create free account
hub / github.com/creatale/node-dv / round

Function round

src/image.cc:23–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#ifdef _MSC_VER
22#if _MSC_VER <= 1700
23int round(double x)
24{
25 return (x > 0.0) ? std::floor(x + 0.5) : std::floor(x - 0.5);
26}
27#endif
28#endif
29

Callers 15

NAN_METHODFunction · 0.85
distanceMethod · 0.85
computeDimensionMethod · 0.85
getMatrixCornerPointsMethod · 0.85
getMatrixCenterMethod · 0.85
sampleLineMethod · 0.85
getColorMethod · 0.85
findWideBarTopBottomMethod · 0.85
findCrossingPointMethod · 0.85
computeDimensionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected