fmax and fmin are now floats