Posts by rafael gonçalves filho • 31 points
1 post
-
3
votes1
answer160
viewsQ: Format a number with a certain number of decimals
How do I make the user choose the number of decimals of a number? EX: from math import pi x = int(input('número de casas decimais de pi: ')) I want to be able to print on the screen pi formatted…
pythonasked rafael gonçalves filho 31