X
X
Xacker_Name2021-12-07 19:22:38
Python
Xacker_Name, 2021-12-07 19:22:38

How to change the output of a long non-integer number in python?

How to change the output of a long non-integer number in python?
Roughly speaking, there is a code:

a = 0.00000000002
print(a)
Вывод - 2e-11

How to withdraw 0.00000000002

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-12-07
@rt2233

If you know how many decimal places you need, then print(f'{a:.12f}') where 12 is how many decimal places to output.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question