Python's built-in float type has double precision (it's a C double in CPython, a Java double in Jython). If you need more precision, get NumPy and use its numpy.float128.

Answer from Fred Foo on Stack Overflow
๐ŸŒ
Python documentation
docs.python.org โ€บ 3 โ€บ library โ€บ stdtypes.html
Built-in Types โ€” Python 3.14.3 documentation
February 25, 2026 - Integers have unlimited precision. Floating-point numbers are usually implemented using double in C; information about the precision and internal representation of floating-point numbers for the machine on which your program is running is available in sys.float_info.
๐ŸŒ
Reddit
reddit.com โ€บ r/python โ€บ double precision
r/Python on Reddit: Double precision
October 17, 2019 -

Hi everyone!

I recently started a project with Python and after long weeks of writing code, I saw that Python's default float precision is just not enough for my needs.

Is there a simple way to change the default Python precision without having to rewrite all my code?

Thank you all in advance!

๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ [deleted by user]
What is a double? (Data type) : r/learnpython
May 2, 2022 - from google: Python does not have an inbuilt double data type, but it has a float type that designates a floating-point number. You can count double in Python as float values which are specified with a decimal point. All platforms represent Python float values as 64-bit โ€œdouble-precisionโ€ ...
๐ŸŒ
Flexiple
flexiple.com โ€บ python โ€บ convert-string-double-python
Converting String to Double in Python - Flexiple
March 22, 2024 - Python provides a convenient built-in method called the float() function to convert strings to doubles. This function takes a string as input and returns the corresponding floating-point number.
๐ŸŒ
FavTutor
favtutor.com โ€บ blogs โ€บ convert-string-to-double-python
Convert String to Double in Python (3 Easy Methods)
October 27, 2022 - You can convert a string to double in Python using the float() method. This method requires only one parameter and returns the input as float (here, double). This is also a common method to convert a string to float in Python.
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_datatypes.asp
Python Data Types
Python Variables Variable Names Assign Multiple Values Output Variables Global Variables Variable Exercises Code Challenge Python Data Types
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ what-does-the-double-star-operator-mean-in-python
What does the Double Star operator mean in Python? - GeeksforGeeks
July 23, 2025 - The ** (double star)operator in Python is used for exponentiation. It raises the number on the left to the power of the number on the right.
Find elsewhere
๐ŸŒ
Real Python
realpython.com โ€บ python-double-underscore
Single and Double Underscores in Python Names โ€“ Real Python
August 18, 2025 - Underscores in Python names indicate intent: a single leading underscore signals a non-public name, a single trailing underscore helps avoid naming conflicts, and a double leading underscore triggers name mangling for class attributes and methods.
๐ŸŒ
eSparkBiz
esparkinfo.com โ€บ double precision floating values
How to Use Double Precision Floating Values in Python
January 21, 2026 - Pythonโ€™s float type stores values using 64 bits (double precision).
Price ย  $12
Call ย  +91 9974759287
Address ย  1001 - 1009 10th floor City Center 2, Sukan Mall Cross Road, Science City Rd, 380060, Ahmedabad
๐ŸŒ
Appdividend
appdividend.com โ€บ python-double
Double (Float) Data Type in Python
December 13, 2025 - Python does not have a built-in double data type, but it does have a float type, which designates a floating-point number.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ convert-string-to-double-in-python3
Convert String to Double in Python3 - GeeksforGeeks
October 8, 2021 - from decimal import Decimal str1 = "9.02" print("This is the initial string: " + str1) # Converting to double str2 = Decimal(str1) print("The conversion of string to double is", str2) str2 = str2+1 print("The converted string to double is incremented by 1:", str2)
๐ŸŒ
Python
docs.python.org โ€บ 3 โ€บ c-api โ€บ float.html
Floating-Point Objects โ€” Python 3.14.3 documentation
Return a C double representation of the contents of pyfloat. If pyfloat is not a Python floating-point object but has a __float__() method, this method will first be called to convert pyfloat into a float. If __float__() is not defined then it falls back to __index__().
๐ŸŒ
Quora
quora.com โ€บ How-do-you-import-a-double-in-Python
How to import a double in Python - Quora
Answer: there is no such thing as a double in Python. A float in Python always uses the available double floating point data type, which means that a float in Python is actually a โ€˜doubleโ€™ if you wrote the same software in C - in a 64 bit ...
๐ŸŒ
Squash
squash.io โ€บ how-to-use-double-precision-floating-values-in-python
How to Use Double Precision Floating Values in Python
November 2, 2023 - Double precision floating-point numbers, also known as doubles, are a common data type used in Python to represent decimal numbers with a high degree of precision.
๐ŸŒ
Quora
quora.com โ€บ Does-Python-have-no-double-data-type
Does Python have no double data type? - Quora
Answer: Python has five standard data types. * Number * String * List * Tuple * Dictionary The number data type can be divided in four further types as, * int * long * float * complex Python interpreter by default interpretes the float data type with the precision of double which is us...
๐ŸŒ
AskPython
askpython.com โ€บ home โ€บ double precision floating values in python
Double precision floating values in Python - AskPython
April 10, 2025 - Pythonโ€™s standard float type, based on double-precision IEEE 754 format, provides up to 15 decimal digits of precision. For tasks needing more precision, Python offers decimal. Decimal with configurable precision, fractions.Fraction for exact irreducible fractions, and numpy.float128 for up to 113 bits of precision.
๐ŸŒ
Python.org
discuss.python.org โ€บ python help
Help getting for loop to double output each time - Python Help - Discussions on Python.org
February 8, 2023 - Hello, I am writing a program the program is almost complete and performs almost exactly how it is supposed to. The problem I am having is I canโ€™t get the output of the dollar amount to double each time the program runs the for loop. Here is the program: Money = .01 Days = int(input("Please ...