Python‎ > ‎decimal‎ > ‎

Decimal.conjugate()


Introduction
Return with the full decimal value.

Syntax
Decimal(x).conjugate()

Parameters
x=decimal value

Examples
The return is:
 >>> Decimal(2.13).conjugate()
Decimal('2.129999999999999893418589635984
97211933135986328125')
>>> 

>>> Decimal(-13.123).conjugate()
Decimal('-13.122999999999999332089828
3855058252811431884765625')
>>> 

>>> Decimal(0).conjugate()
Decimal('0')
>>>


The method binary bit value of a, not in b after applying the round() method to Decimal().conjugate() and Decimal().copy_abs()
import operator
from decimal import*

a=round(Decimal(33).conjugate())
b=round(Decimal(-133).copy_abs())

if operator.xor(a,b).__lt__(300):
    print(" Binary the bit set in", a, "not in" ,b, "is", operator.xor(a,b))
else:
    ValueError

>>> 
Binary the bit set in 33 not in 133 is 164
>>> 

Comments