In Python, is there a way to get the largest integer one can use? Is there some pre-defined constant like INT_MAX?
43 down vote favorite
7
|
python integer
|
|||
add a comment
|
1 Answer
active oldest votes
up vote
86 down vote
accepted
|
Python has arbitrary precision integers so there is no true fixed maximum. You're only limited by available memory. In Python 2, there are two types,
works fine and returns a
|
|||
sys.maxsize
can be used when you need an arbitrarily-large value. – mattdm Jan 23 '12 at 19:07arbitrary
常用词汇"the arbitrary rule of a dictator"
"an arbitrary penalty"
"of arbitrary size and shape"
"an arbitrary choice"
"arbitrary division of the group into halves"
我的选择相当随意。
我不习惯你们那些随心所欲的标准。
这是个武断的决定。
precision
常用词汇"note the meticulous precision of his measurements"
老师从一开始就强调翻译准确性。
你的报告不够准确。
每一个论点都阐述得精确严密,符合逻辑。
这些仪器可以达到很高的精密度。
对于精密或超精密度模具,不同时期有不同的概念。
他用极为精确的话语发言。
精确的测量是生产互换零件和批量产品的关键。