Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python format currency

amt = 5.3568
print(f"I have ${amt:,.2f}.")
# Output: 
# I have $5.36.
 
PREVIOUS NEXT
Tagged: #python #format #currency
ADD COMMENT
Topic
Name
3+9 =