For float
have a look at sys.float_info
:
>>> import sys >>> sys.float_info sys.floatinfo(max=1.7976931348623157e+308, max_exp=1024, max_10_exp=308, min=2.2 250738585072014e-308, min_exp=-1021, min_10_exp=-307, dig=15, mant_dig=53, epsil on=2.2204460492503131e-16, radix=2, rounds=1)
Specifically, sys.float_info.max
:
>>> sys.float_info.max 1.7976931348623157e+308
If that’s not big enough, there’s always positive infinity:
>>> infinity = float("inf") >>> infinity inf >>> infinity / 10000 inf
The long
type has unlimited precision, so I think you’re only limited by available memory.
Related Posts:
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- “OverflowError: Python int too large to convert to C long” on windows but not mac
- Understanding the main method of python [duplicate]
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- Python Math – TypeError: ‘NoneType’ object is not subscriptable
- numpy max vs amax vs maximum
- PermissionError: [Errno 13] in Python
- “If not” condition statement in python
- Why the range of int is -32768 to 32767?
- syntaxerror: “unexpected character after line continuation character in python” math
- How can I sort a dictionary by key?
- max value of integer
- Python Logic of ListNode in Leetcode
- How can I write a `try`/`except` block that catches all exceptions?
- How can I prevent java.lang.NumberFormatException: For input string: “N/A”?
- Plot logarithmic axes with matplotlib in python
- Java JDK – possible lossy conversion from double to int
- Getting key with maximum value in dictionary?
- Error in Python script “Expected 2D array, got 1D array instead:”?
- Python Key Error=0 – Can’t find Dict error in code
- Getting key with maximum value in dictionary?
- Relative imports for the billionth time
- How do I use the yfinance API in Python to get today’s DJI open?
- what does the __file__ variable mean/do?
- Pythonic way to create a long multi-line string
- Proper shebang for Python script
- ‘str’ object has no attribute ‘decode’. Python 3 error?
- How do I correctly clean up a Python object?
- Log to the base 2 in python
- Implement touch using Python?
- Python setup.py develop vs install
- How to clamp an integer to some range?
- How to extract the substring between two markers?
- Convert bytes to int?
- Is there an operation for not less than or not greater than in python?
- Simple prime number generator in Python
- Background color for Tk in Python
- If Python is interpreted, what are .pyc files?
- How do I get monitor resolution in Python?
- What is runtime in context of Python? What does it consist of?
- Unable to convert 3d ply file image to 2d image
- Python High Pass Filter
- Where are the ampersand and vertical bar characters used in Python?
- Why is the sizeof(int) == sizeof(long)?
- Python: What OS am I running on?
- How to draw a line with matplotlib?
- Get all object attributes in Python?
- Normalizing a list of numbers in Python
- mport win32ui in python 3.6
- SyntaxError: unexpected EOF while parsing
- How do I lowercase a string in Python?
- How do I copy a file in Python?
- How can I reverse a list in Python?
- Manually raising (throwing) an exception in Python
- How do I copy a file in Python?
- can’t multiply sequence by non-int of type ‘float’
- Difference between del, remove, and pop on lists
- How can I reverse a list in Python?
- How do I convert a String to an int in Java?
- How to use the pass statement
- How to use filter, map, and reduce in Python 3
- Using prevNext Modx Addon
- What does enumerate() mean?
- Searching the student-t distribution table for values using python
- How to declare an array in Python?
- :wq! command in vim
- Does Python have a ternary conditional operator?
- how to set the background color of the status bar during the launching phase [duplicate]
- Use Gif Logo For Loading Screen In Kivy
- api-ms-win-crt-runtime-l1-1-0.dll is missing when opening Microsoft Office file [closed]
- Praw & Discord.py: The bot keep sending the same meme. I want the bot to send different meme whenever it is asked
- 1000 * 60 * 60 * 24 * 30 results in a negative number [duplicate]
- Pig Latin Translator
- What is the difference between Python’s list methods append and extend?
- How can I make a time delay in Python? [duplicate]
- When is K 1024 and when is it 1000?
- What is a MIME type?
- Python – TypeError: ‘int’ object is not iterable
- TypeError: ‘int’ object is not subscriptable
- sphinx.ext.autodoc: Keeping names of constants in signature
- Logitech/LGHUB Lua – Loop with break
- are there dictionaries in javascript like python?
- are there dictionaries in javascript like python?
- How do you round UP a number?
- Understanding slice notation
- Iterating over dictionaries using ‘for’ loops
- How to define a two-dimensional array?
- How can I convert MP3 file to a Base64 encoded string? [closed]
- Understanding The Modulus Operator %
- how to sort pandas dataframe from one column
- Why am I seeing “TypeError: string indices must be integers”?
- Dial pad to get phone number (with Android button images)
- How do you round UP a number?
- Understanding slice notation
- How do I update\upgrade pip itself from inside my virtual environment?
- How to open a file using the open with statement
- How is the AND/OR operator represented as in Regular Expressions?
- How to emulate a do-while loop?
- How do I update\upgrade pip itself from inside my virtual environment?