MCPcopy Create free account
hub / github.com/WheretIB/nullc / round

Function round

NULLC/includes/canvas.cpp:69–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 void swap(int &a, int &b){ int tmp = a; a = b; b = tmp; }
68
69 int round(double x){ return int(x + 0.5); }
70 void swap(double &a, double &b){ double tmp = a; a = b; b = tmp; }
71 double abs(double x){ return x < 0.0 ? -x : x; }
72 double fpart(double x){ return x - floor(x); }

Callers 1

CanvasDrawLineAAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected