Keep only two digits after the first digit other than zero
Keep only two digits after the first digit other than zero Question: I know how to keep only two decimal places after the decimal point. For example (there are other methods): >>> print(f'{10000.01908223295211791992:.2f}’) 10000.02 But I want to keep the first two digits other than zero after the decimal point: 10000.01908223295211791992 will give: 10000.019 0.0000456576578765 …