added __func__ for debugging purposes, renamed padding() to round()