CBSE BOARD XII, asked by palvibhatt2003, 3 months ago

explore the internet and find out how to display a floating number to required decimal place in python​

Answers

Answered by joy1371
1

Explanation:

Use str. format() to print a float with two decimal places

Call str. format(number) with "{:. 2f}" as str and a float as number to return a string representation of the number with two decimal places.

Plz mark me as a brainliest member Thanq

Similar questions