betbetter 2 өдөр өмнө
parent
commit
2dc387b0d0
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      format.py

+ 5 - 0
format.py

@@ -0,0 +1,5 @@
+def fmt_american(a):
+    return ("+%d" % a) if a > 0 else str(a)
+
+def fmt_decimal(d):
+    return "%.2f" % d