use round instead of roundf