diff --git a/faker/providers/python/__init__.py b/faker/providers/python/__init__.py index 8e3da26490..9501d97ba3 100644 --- a/faker/providers/python/__init__.py +++ b/faker/providers/python/__init__.py @@ -209,8 +209,7 @@ def pyfloat( sign = "+" else: sign = "-" - - + left_number = self.random_number(left_digits) result = float(f"{sign}{left_number}.{self.random_number(right_digits)}")