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.
Codefinity
codefinity.com › blog › Float-vs-Double
Float vs Double
Python does not have a separate float and double type distinction. It uses double precision floating-point numbers for all decimal values. Here's how you define a floating point number in Python: my_float = 3.14 # Python uses 64-bit IEEE 754 ...
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 - In languages that have both float and double, that's what they mean. But then you'll have languages like python, which only have a float type and no double type, and Python's floats are actually double-precision.
ELI5: difference between double and floating point data types May 17, 2014
r/explainlikeimfive 12y ago
ELI5: Why are real number data types such as float and double called "floating-point"? Apr 23, 2018
r/explainlikeimfive 8y ago
Double-precision floating-point as the only number type in "scripting" languages Feb 2, 2023
r/ProgrammingLanguages 3y ago
types - Double precision floating values in Python? - Stack Overflow
Generally "Double precision floating values in Python?" → "float-s are double precision" 2017-06-13T10:00:27.16Z+00:00 ... For some applications you can use Fraction instead of floating-point numbers. >>> from fractions import Fraction >>> Fraction(1, 3**54) Fraction(1, 58149737003040059690390169) (For other applications, there's decimal, as suggested out by the other responses.) ... how do I choose between Decimal and ... More on stackoverflow.com
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
types - Python: Float or Double - Stack Overflow
I need to pack numbers in Python using the struct module. I want to check if a number is float or double, when I pack it. How can I do that? Is there any built-in functions, or I need to write one?... More on stackoverflow.com
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
Videos
04:50
Python Integers vs Floats - Visually Explained - YouTube
Floats and Integers | How To Python - YouTube
09:58
THIS Is How You SHOULD Be Comparing FLOATS (Accurately) In Python ...
08:55
Compare Float and Double - YouTube
07:43
Lesson 4- Basic Data Types in Python (int, float, str, bool) - YouTube
Top answer 1 of 5
198
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.
2 of 5
75
Decimal datatype
- Unlike hardware based binary floating point, the decimal module has a user alterable precision (defaulting to 28 places) which can be as large as needed for a given problem.
If you are pressed by performance issuses, have a look at GMPY
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 - Python’s default float (64-bit double) works fine. In deep learning (TensorFlow, PyTorch), float32 is preferred for GPU optimization. ... Floats often win here—memory is limited, and sensors don’t need 15 decimal places. ... Speed and memory → go with float. Accuracy and precision → go with double. ... 👉 Developer insight: Don’t memorize this table for interviews—understand the trade-off between speed vs.
tutorialpedia
tutorialpedia.org › blog › what-is-the-difference-between-float-and-double
Float vs Double: Key Differences Explained, When They're Interchangeable & When to Use Each — tutorialpedia.org
Memory and performance are not constraints: If your dataset is small (e.g., a few hundred values) and your CPU has ample memory, double’s extra precision won’t hurt, and float won’t save meaningful resources. The language abstracts the difference: In Python or JavaScript, all decimals are double-precision, so you don’t need to choose.
Reddit
reddit.com › r/learnpython › [deleted by user]
[deleted by user] : r/learnpython
May 2, 2022 - All platforms represent Python float values as 64-bit “double-precision” values, according to the IEEE 754 standard.
W3Schools
w3schools.in › difference-float-double-data-types
Difference Between Float and Double Data Types - W3Schools
Though Float and Double both of them are used for assigning real (or decimal) values in programming there is a major difference between these two data 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 the result of 1.2-1 is false
TutorialsPoint
tutorialspoint.com › article › difference-between-float-and-double
Difference Between Float and Double
It has a double precision. It takes 8 bytes of memory. According to IEEE, it has 64-bit precision. Its value can be between 2.3E-308 to 1.7E+308.