make sure the value passed into sqrt() is a positive number