Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I initialize and use 64-bit integer in Python3

Tags:

int

python-3.x

The problem requires me to use 64-bit integer. How can I initialize and implement that in python3?

like image 857
Ritwik Jamuar Avatar asked Dec 19 '16 06:12

Ritwik Jamuar


1 Answers

You've misinterpreted their warning. They're telling you to use a larger type than normal in order to avoid overflow issues seen with a 32-bit type. Since Python's int is essentially boundless there will never be an overflow issue.

like image 70
Ignacio Vazquez-Abrams Avatar answered Oct 03 '22 21:10

Ignacio Vazquez-Abrams