Python

[module] Python - math.inf 상수 - float 자료형의 무한대 상수 (= inf) 반환.

4149

목차

  1. math.inf 예제 - float 자료형의 무한대 상수 (= inf) 반환
  2. math.inf 정의
  3. math.inf 구문

 

math.inf 예제 - float 자료형의 무한대 상수 (= inf) 반환

 

import math

print (math.inf) # inf (※ 양의 무한대)

print (-math.inf) # -inf (※ 음의 무한대)


 

math.inf 정의

 

부동 소수 무한대 상수 (= inf ) 반환.

 


 

※ 음의 무한대 : 앞에 마이너스 기호 ( - ) 추가. 

float("inf") 값과 동일.

※ Python 3.5 이상.

 

 

math.inf 구문

 

math.inf

 


[반환값]

 

inf 반환.

※ 양의 무한대 상수.

※ float 자료형.

 



분류 제목
module Python - cmath 모듈 메서드・상수 종류 (※ 복소수 모듈)
module Python - cmath.acos(x) 메서드 -
module Python - cmath.acosh(x) 메서드 -
module Python - cmath.asin(x) 메서드 -
module Python - cmath.asinh(x) 메서드 -
module Python - cmath.atan(x) 메서드 -
module Python - cmath.atanh(x) 메서드 -
module Python - cmath.cos(x) 메서드 -
module Python - cmath.cosh(x) 메서드 -
module Python - cmath.exp(x) 메서드 -
module Python - cmath.isclose() 메서드 -
module Python - cmath.isfinite(x) 메서드 -
module Python - cmath.isinf(x) 메서드 -
module Python - cmath.isnan(x) 메서드 -
module Python - cmath.log() 메서드 -
29/32
목록
 홈  PC버전 로그인 일본어
그누앞단언어
그누뒷단언어
그외코딩언어
그누보드
제작의뢰
Q&A
커뮤니티
웹유틸
회원센터
홈짱닷컴 PC버전 로그인