Brain-Score 84/100 TECH Indently · 1:35

Python 3.15 Finally Introduced THIS #python #coding

3-Second Blueprint (English)

  1. Python 3.15 introduces fmax and fmin to compare floats while ignoring NaN, returning 5.0 for fmax(nan, 5.0) instead of nan.
  2. Unlike built-in max and min, which depend on argument order for signed zeros, fmax always returns +0.0 and fmin returns -0.0.
  3. Both fmax and fmin accept strictly two numeric arguments—including integers—and always convert the returned value to a float.
Python 3.15 fmax & fminNaN-Safe Float ComparisonSigned Zero (+0.0 / -0.0)Two-Argument Float Cast

3-Sekunden-Fazit (Deutsch)

  1. Python 3.15 führt fmax und fmin ein, die beim Float-Vergleich NaN ignorieren und bei fmax(nan, 5.0) korrekt 5.0 statt nan liefern.
  2. Anders als max und min liefern fmax und fmin bei -0.0 und +0.0 unabhängig von der Argumentreihenfolge stets +0.0 bzw. -0.0.
  3. Beide Funktionen akzeptieren genau zwei numerische Argumente – auch Integer – und geben das Ergebnis immer als Float zurück.
Python 3.15 fmax & fminNaN-sicherer Float-VergleichVorzeichenbehaftete NullZwei-Argumente-Float-Rückgabe

Note / Hinweis: Blueprints are AI-generated educational summaries (0% Politics · 0% Religion · 0% Brainrot) and do not constitute medical, legal, or financial advice. / KI-generierte Zusammenfassung zu Bildungszwecken – ersetzt keine medizinische, rechtliche oder finanzielle Fachberatung.