We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c8a570a + cfa3efd commit b4b82a6Copy full SHA for b4b82a6
bittensor/utils/balance.py
@@ -53,8 +53,13 @@ def __float__(self):
53
return self.tao
54
55
def __str__(self):
56
- """Returns the Balance object as a string in the format "symbolvalue", where the value is in tao."""
57
- return f"{self.unit}{float(self.tao):,.9f}"
+ """
+ Returns the Balance object as a string in the format "symbolvalue", where the value is in tao.
58
59
+ if self.unit == units[0]:
60
+ return f"{self.unit}{float(self.tao):,.9f}"
61
+ else:
62
+ return f"\u200e{float(self.tao):,.9f}{self.unit}\u200e"
63
64
def __rich__(self):
65
int_tao, fract_tao = format(float(self.tao), "f").split(".")
0 commit comments