<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ieee-754 on toorun.dev</title><link>https://toorun.dev/tags/ieee-754/</link><description>Recent content in ieee-754 on toorun.dev</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sat, 19 Sep 2026 09:00:00 +0000</lastBuildDate><atom:link href="https://toorun.dev/tags/ieee-754/index.xml" rel="self" type="application/rss+xml"/><item><title>NaN in Practice: What It Is, When to Use It, and How to Parse It Safely</title><link>https://toorun.dev/posts/nan-in-practice-what-it-is-when-to-use-it-and-how-to-parse-it-safely/</link><pubDate>Sat, 19 Sep 2026 09:00:00 +0000</pubDate><guid>https://toorun.dev/posts/nan-in-practice-what-it-is-when-to-use-it-and-how-to-parse-it-safely/</guid><description>NaN in Practice: What It Is, When to Use It, and How to Parse It Safely What is NaN? NaN means “Not a Number.” It is the standard floating-point result for invalid math, defined by the IEEE 754 standard.
Examples:
0 / 0 sqrt(-1) log(-10) inf - inf The important rule: NaN is not equal to anything, including itself.
x = float(&amp;#39;nan&amp;#39;) print(x == x) # False That is why NaN is useful as a signal, but dangerous if you forget to check it.</description></item></channel></rss>