moved round() to main lib for convenience