• 회원가입
  • 로그인
  • 구글아이디로 로그인

[module] Python - math.nan 상수 - float 자료형의 NaN 상수 (= nan) 반환.

2961  

목차

  1. math.nan 예제
  2. math.nan 정의
  3. math.nan 구문

 

math.nan 예제

 

import math

print (math.nan) # nan


 

math.nan 정의

 

부동 소수형 NaN 상수 (= nan ) 반환.

 


 

※ nan (Not a Number : 숫자 아님)

※ float("nan") 또는 math.nan 값과 동일.

※ Python 3.5 이상.

 

 

math.nan 구문

 

math.nan

 


[반환값]

 

nan 반환.

※ float 자료형 nan 상수.

 



분류 제목
module Python - cmath.tan(x) 메서드 -
module Python - cmath.tanh(x) 메서드 -
module Python - cmath.e 상수 - 오일러 상수 (2.71...)
module Python - cmath.inf 상수 - float 자료형의 무한대 상수 (= inf) 반환.
module Python - cmath.infj 상수 - complex 자료형의 무한대 상수 (= infj) 반환.
module Python - cmath.nan 상수 - float 자료형의 nan 상수 (= nan) 반환.
module Python - cmath.nanj 상수 - complex 자료형의 nan 상수 (= nanj) 반환.
module Python - cmath.pi 상수 - 원주율 (= 3.14...) 반환. (= 파이 상수)
module Python - cmath.tau 상수 - 원주율 2배 (= 6.28...) 반환. (= 타우 상수)
7/7
목록
찾아주셔서 감사합니다. Since 2012