mirror of
https://github.com/fschmnn/duodecimal.git
synced 2024-05-31 22:41:31 +00:00
2019.03.09 - fixed same bug again
This commit is contained in:
parent
28e194be1b
commit
79a66e0de8
|
@ -145,7 +145,10 @@ class duo:
|
||||||
return self.decimal
|
return self.decimal
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return self.duodecimal[:7].rstrip('0') + '(base12)'
|
if '.' in self.duodecimal:
|
||||||
|
return self.duodecimal[:7].rstrip('0') + '(base12)'
|
||||||
|
else:
|
||||||
|
return self.duodecimal + '(base12)'
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.duodecimal
|
return self.duodecimal
|
Loading…
Reference in New Issue
Block a user