Bugs item #1202946, was opened at 2005-05-16 16:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1202946&group_id=5470

Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: ric-b (ric-b)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with abs function

Initial Comment:
On windows version I get :

>>> abs(-9999999999999999999)

Traceback (most recent call last):
  File "<pyshell#7>", line 1, in -toplevel-
    abs(-9999999999999999999)
OverflowError: long too big to convert

does not handle new longs.


I am using the following work around:

            t = a - b  # calc t = abs(a - b)
            if t < 0 :  
                t *= -1


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1202946&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to