hey i want to convert 46.0 to 46.00 in python program
Answers
Answered by
0
Answer:
n=46.0
print("{:.2f}."format(n))
Explanation:
For better understanding , you need to learn string formatting.
here .2f denote the length of block after point is two
Similar questions