These functions should return ints as the math.* functions do instead of following the convention of numpy.* functions.