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
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ dsa โ€บ difference-between-float-and-double
Difference between Float and Double - GeeksforGeeks
July 23, 2025 - The key difference is their precision and storage size. A float is typically a 32-bit number with a precision of about 7 decimal digits, while a double is a 64-bit number with a precision of about 15 decimal digits.
Discussions

What is the difference between int double and float?
What is the difference between those three and for what each is meant? More on sololearn.com
๐ŸŒ sololearn.com
2
0
TIL a Python float is the same (precision) as a Java double
Just wait until you find out what an int is in python More on reddit.com
๐ŸŒ r/learnpython
85
109
May 1, 2025
Floating-point numbers
The result of 12+12.23 is 35.120000000000005 The result of 23+12.23 is 35.230000000000004 And the result of 1.2-1 is 0.19999999999999996 But in C++ the results are true. Why?What is the difference between C++ and Python at floating-point numbers Note: The result of 0.1+0.1 is 0.2 It is true.But ... More on discuss.python.org
๐ŸŒ discuss.python.org
4
1
December 17, 2022
Difference between Float and Double Data types? - Python - Digi Technical Support Forums
Apart from memory size of Float and Double data types, I want to know any other differences and also want to know when we use float and when we use double Data type? More on forums.digi.com
๐ŸŒ forums.digi.com
0
February 23, 2021
๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ float vs. double โ€“ what's the key difference?"
r/learnprogramming on Reddit: float vs. double โ€“ What's the Key Difference?"
November 2, 2024 - Using float means using less memory, having more efficient code (due to lower precision so saving on calculations) and handling a smaller range of numbers (floats handle a smaller range than double due to reduced memory usage).
๐ŸŒ
Codefinity
codefinity.com โ€บ blog โ€บ Float-vs-Double
Float vs Double
my_float = 3.14 # Python uses 64-bit IEEE 754 double precision by default
๐ŸŒ
Hackr
hackr.io โ€บ home โ€บ articles โ€บ programming
Float vs Double Data Types: What's The Difference [Updated]
January 30, 2025 - Explanation: Python only has one floating-point type (float), which is actually a double-precision floating-point number.
๐ŸŒ
Wikitechy
wikitechy.com โ€บ float-and-double-in-programming
๐Ÿงฎ Float and Double in Programming: Meaning, Size, Range, and Key Differences in 2025 - Wikitechy
September 25, 2025 - A double is the bigger sibling of float. Itโ€™s a 64-bit double-precision floating-point type that can represent up to 15โ€“16 decimal digits accurately. Thatโ€™s more than double the precision of float.
Find elsewhere
๐ŸŒ
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.
๐ŸŒ
Quora
quora.com โ€บ What-exactly-is-the-difference-between-decimals-floating-point-numbers-and-doubles-in-Python-programming-They-seem-to-get-addressed-interchangeably
What exactly is the difference between decimals, floating-point numbers and doubles in Python programming? They seem to get addressed interchangeably. - Quora
Answer (1 of 3): There is no such thing as doubles in Python itself, but Internally a floating point value is stored in a double precision C floating point value (as defined by IEEE 754 [1]) Floating point values are limited precision - they use a fixed number of bits to store a wide range of va...
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ [deleted by user]
[deleted by user] : 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.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ til a python float is the same (precision) as a java double
r/learnpython on Reddit: TIL a Python float is the same (precision) as a Java double
May 1, 2025 -

TL;DR in Java a "double" is a 64-bit float and a "float" is a 32-bit float; in Python a "float" is a 64-bit float (and thus equivalent to a Java double). There doesn't appear to be a natively implemented 32-bit float in Python (I know numpy/pandas has one, but I'm talking about straight vanilla Python with no imports).

In many programming languages, a double variable type is a higher precision float and unless there was a performance reason, you'd just use double (vs. a float). I'm almost certain early in my programming "career", I banged my head against the wall because of precision issues while using floats thus I avoided floats like the plague.

In other languages, you need to type a variable while declaring it.

Java: int age=30
Python: age=30

As Python doesn't have (or require?) typing a variable before declaring it, I never really thought about what the exact data type was when I divided stuff in Python, but on my current project, I've gotten in the habit of hinting at variable type for function/method arguments.

def do_something(age: int, name: str):

I could not find a double data type in Python and after a bunch of research it turns out that the float I've been avoiding using in Python is exactly a double in Java (in terms of precision) with just a different name.

Hopefully this info is helpful for others coming to Python with previous programming experience.

P.S. this is a whole other rabbit hole, but I'd be curious as to the original thought process behind Python not having both a 32-bit float (float) and 64-bit float (double). My gut tells me that Python was just designed to be "easier" to learn and thus they wanted to reduce the number of basic variable types.

๐ŸŒ
Python.org
discuss.python.org โ€บ python help
Floating-point numbers - Python Help - Discussions on Python.org
December 17, 2022 - The result of 12+12.23 is 35.120000000000005 The result of 23+12.23 is 35.230000000000004 And the result of 1.2-1 is 0.19999999999999996 But in C++ the results are true. Why?What is the difference between C++ and Python at floating-point numbers Note: The result of 0.1+0.1 is 0.2 It is true.But ...
๐ŸŒ
Educative
educative.io โ€บ answers โ€บ what-is-the-difference-between-float-and-double
What is the difference between float and double?
A float has 7 decimal digits of precision and occupies 32 bits. A double is a 64-bit IEEE 754 double-precision floating-point number. 1 bit for the sign, 11 bits for the exponent, and 52 bits for the value.
๐ŸŒ
Ask Any Difference
askanydifference.com โ€บ home โ€บ software โ€บ float vs double: difference and comparison
Float vs Double: Difference and Comparison
January 30, 2022 - Float and double are both data ... and storage size: float represents single-precision floating-point numbers with 32 bits, while double represents double-precision floating-point numbers with 64 bits, offering higher precision ...
๐ŸŒ
eSparkBiz
esparkinfo.com โ€บ double precision floating values
How to Use Double Precision Floating Values in Python
September 2, 2025 - Pythonโ€™s float type stores values using 64 bits (double precision).
Price: $25
Address: 12th Floor, The Orion, Sarkhej - Gandhinagar Hwy, Ahmedabad, Gujarat 382481
๐ŸŒ
Digi
forums.digi.com โ€บ python
Difference between Float and Double Data types? - Python - Digi Technical Support Forums
February 23, 2021 - Apart from memory size of Float and Double data types, I want to know any other differences and also want to know when we use float and when we use double Data type?
๐ŸŒ
Note.nkmk.me
note.nkmk.me โ€บ home โ€บ python
Maximum and Minimum float Values in Python | note.nkmk.me
August 11, 2023 - In Python, the float type is a 64-bit double-precision floating-point number, equivalent to double in languages like C. This article explains how to get and check the range (maximum and minimum values ...
๐ŸŒ
Python Reference
python-reference.readthedocs.io โ€บ en โ€บ latest โ€บ docs โ€บ float
float โ€” Python Reference (The Right Way) 0.1 documentation
These represent machine-level double precision floating point numbers. You are at the mercy of the underlying machine architecture (and C or Java implementation) for the accepted range and handling of overflow. Python does not support single-precision floating point numbers; the savings in ...