#include "tensorstore/util/rational.h"
static constexpr Rational tensorstore::Rational<I>::nan();

Returns a special not-a-number value. All comparisons involving nan() return false.