This commit is contained in:
xmrcheckout
2026-01-04 16:26:37 +01:00
commit 3465c2054b
22 changed files with 4079 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
from decimal import Decimal
def format_xmr_amount(value: Decimal) -> str:
normalized = value.normalize()
formatted = format(normalized, "f")
if "." in formatted:
formatted = formatted.rstrip("0").rstrip(".")
return formatted or "0"