What is Nostr?
Mark T. Tomczak /
npub10zv…ga0j
2024-06-27 21:39:39

Mark T. Tomczak on Nostr: #python , why are you trying to kill my soul?<code>&gt;&gt;&gt; from math import ...

#python , why are you trying to kill my soul?<code>&gt;&gt;&gt; from math import nan<br>&gt;&gt;&gt; min(nan, 1)<br>nan<br>&gt;&gt;&gt; min(1, nan)<br>1<br>&gt;&gt;&gt;<br></code>

... stuff like this is why people just memorize the rule "Avoid the magic floating-point values like the plague."
Author Public Key
npub10zv2wul2hvcg6z9445zjdm5yldmyc6sqyr0u4xnnyygtfeym746s2aga0j