How to get first 4 digits after the 0s in a decimal but keeping 0s • Python

I need the first 4 digits after the front 0s in a decimal while also keeping the 0s in the output without getting scientific notation.

Would like to take
0.0000000000000000000000634546534
and get
0.00000000000000000000006345 but not
6.345e-23.

But would also like to take
231.00942353246
and get
231.009423.

Thank you.

Source: Python-3x Questions

LEAVE A COMMENT