Python Programming - Console Input/Output - Discussion
Discussion Forum : Console Input/Output - General Questions (Q.No. 40)
40.
How can you format a floating-point number with a specific number of decimal places?
Answer: Option
Explanation:
To format a floating-point number with a specific number of decimal places, use
format(number, ".2f")
.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers