소스 검색

Grouping with , in number format

Foppe Hemminga 6 년 전
부모
커밋
4ae41bd2e6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      view.py

+ 1 - 1
view.py

@@ -14,7 +14,7 @@ def create_message(name, timestamp, price, quantity):
     """
     this_time = datetime.utcfromtimestamp(timestamp).strftime('%Y-%m-%d %H:%M')
     this_drop_decimal = quantity * price / 1e9
-    this_message = "{}: {} dropped {:,} shares at ${:.2f} for a grand total of ${:,.1f}B".format(
+    this_message = "{}: {} dropped {:,} shares at ${:,.2f} for a grand total of ${:,.1f}B".format(
         this_time, name, quantity, price, this_drop_decimal)
     return this_message