use roundf() instead of round, since argument passed is a float