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