CBSE BOARD XII, asked by rajesh2790317, 8 months ago

name the module to be imported to use Nan​

Answers

Answered by SKSWAGBOSS
2

Answer:

>> from math import nan

>>> print(nan)

nan

>>> print(nan + 2)

nan

>>> nan == nan

False

>>> import math

>>> math.isnan(nan)

True

Before Python 3.5, one could use float("nan") (case insensitive).

Note that checking to see if two things that are NaN are equal to one another will always return false. This is in part because two things that are "not a number" cannot (strictly speaking) be said to be equal to one another -- see What is the rationale for all comparisons returning false for IEEE754 NaN values? for more details and information.

Instead, use math.isnan(...) if you need to determine if a value is NaN or not.

Furthermore, the exact semantics of the == operation on NaN value may cause subtle issues when trying to store NaN inside container types such as list or dict (or when using custom container types). See Checking for NaN presence in a container for more details.

Answered by ghirivaasan10b
1

Answer:

Pythons decimal module

pls follow me mark me brainliest

Similar questions