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
.
More Related Contents:
- Determine the type of an object?
- How to determine a Python variable’s type?
- Change column type in pandas
- Immutable vs Mutable types
- How to check if string input is a number?
- Store different datatypes in one NumPy array?
- Can pandas automatically read dates from a CSV file?
- Limiting floats to two decimal points
- How to properly round-up half float numbers?
- List vs tuple, when to use each? [duplicate]
- How do I find numeric columns in Pandas?
- Fastest way to convert a dict’s keys & values from `unicode` to `str`?
- What is the most pythonic way to check if an object is a number?
- Complex numbers in python
- How to check if an object is a list or tuple (but not string)?
- Floating Point Limitations [duplicate]
- How can I check if my python object is a number? [duplicate]
- What does dtype=object mean while creating a numpy array?
- Python check for integer input
- Determine precision and scale of particular number in Python
- Why does object.__new__ work differently in these three cases
- Type hinting in Python 2
- How to check if a variable is a function in Python?
- the bytes type in python 2.7 and PEP-358
- How do you set a conditional in python based on datatypes?
- Python: Can a subclass of float take extra arguments in its constructor?
- Possible to enforce type hints?
- Identifying the data type of an input
- Do union types actually exist in python?
- Working with floating point NumPy arrays for comparison and related operations