mirror of
https://github.com/fschmnn/duodecimal.git
synced 2025-01-14 03:31:10 +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
|
||||
|
||||
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):
|
||||
return self.duodecimal
|
Loading…
x
Reference in New Issue
Block a user