파이썬[Python]: decimal - conjugate 메서드
decimal 모듈 - conjugate 메서드(method)
/// 설명
인자값을 출력합니다.(공백과 밑줄문자는 제외됩니다.) 
※ 형식
Decimal().conjugate()
reference
https://docs.python.org/3/library/decimal.html#module-decimal
※ 형식
Decimal().conjugate()
reference
https://docs.python.org/3/library/decimal.html#module-decimal
/// 예제
1 2 3 4 5 6 7 8 9 10 11 12 13 14  | import decimal print(decimal.Decimal('-1').conjugate())  # -1 print(decimal.Decimal('1').conjugate())  # 1 print(decimal.Decimal('-1.0').conjugate())  # -1.0 print(decimal.Decimal('1e+1').conjugate())  # 1E+1 print(decimal.Decimal('-10').conjugate())  # -10 print(decimal.Decimal('10.0').conjugate())  # 10.0 print(decimal.Decimal('10.00000000').conjugate())  # 10.00000000 print(decimal.Decimal('   10000').conjugate())  # 10000 print(decimal.Decimal('___10000').conjugate())  # 10000 print(decimal.Decimal('NaN').conjugate())  # NaN print(decimal.Decimal('___NaN___').conjugate())  # NaN  | cs | 
* 실행환경: Microsoft Windows 10 Homes
* 인터프리터: 파이썬(Python 3.9)
– 당신을 응원합니다. –
댓글
댓글 쓰기