This paper introduces the structure of DDS principle and the distribution law of phase accumulator truncation errors after analyzing its effects on frequency spectrum and puts up with an algorithm for the errors without approximate treatment, which is more precise and efficient.