BF - older C compilers do not have round in math.h, uisng dpy_math instead