Please post your code, but it is probably due to the lookup table calculation.
The sin function returns a number equivalent to the sine of the value in degrees.
The system uses a 45 step lookup table in each quadrant, giving a very fast, and
reasonably accurate, result