It appears that some of the functions from the cmath
header are missing from the Android-NDK, see here for more details.
However, it is very simple to implement your own round
function:
template<typename T> T round(T v) { return int(v + 0.5); }
Or check out other suggestions / implementations here .
source share