On this page
  1. cmath.isnan
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

cmath.isnan

Prev: cmath.isinf | Up: cmath | Next: cmath.log
Rel: cmath.acos, cmath.acosh, cmath.asin, cmath.asinh
Ref: docs.python.org — cmath.isnan
Tags: #public #python3 #stdlib #cmath


Import

import cmath
from cmath import isnan

Signature & Overview

cmath.isnan(z, /)

Checks if the real or imaginary part of z not a number (NaN).

Usage

import cmath

assert cmath.isnan(complex(float("nan"), 1.0)) is True

Gotchas

REPL Inspect

from cmath import isnan
help(isnan)

Linked from

Related notes