Integer arithmetic

Anders Hammarquist iko at cd.chalmers.se
Tue Mar 25 18:37:12 EST 2003


In article <Pine.GSO.4.44.0303251456231.4060-100000 at amy3.Stanford.EDU>,
Daniel Timothy Bentley  <dbentley at stanford.edu> wrote:
>Unless there's a function I'm missing that returns INT_MAX (as C
>pronounces it) and I'm just supposed to mod it.

>>> import sys
>>> hex(sys.maxint)
'0x7fffffff'

HTH

/Anders

-- 
 -- Of course I'm crazy, but that doesn't mean I'm wrong.
Anders Hammarquist                                  | iko at cd.chalmers.se
Physics student, Chalmers University of Technology, | Hem: +46 31 88 48 50
G|teborg, Sweden.           RADIO: SM6XMM and N2JGL | Mob: +46 707 27 86 87




More information about the Python-list mailing list