cpython
cpython copied to clipboard
gh-135853: add `math.fmax` and `math.fmin`
I've added math.fmin and math.fmax as I think it'd be nice to have the NaN handling as per C99. I didn't make those functions generic or accept any iterable argument.
WDYT of this proposal @skirpichev @rhettinger?
- Issue: gh-135853
📚 Documentation preview 📚: https://cpython-previews--135888.org.readthedocs.build/