fmin and fmax should be const methods