Update of /cvsroot/webware/Webware/MiscUtils
In directory sc8-pr-cvs1:/tmp/cvs-serv802
Modified Files:
Funcs.py
Log Message:
- fixed a bug in commas() regarding negative numbers
Index: Funcs.py
===================================================================
RCS file: /cvsroot/webware/Webware/MiscUtils/Funcs.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** Funcs.py 10 Dec 2002 09:10:54 -0000 1.17
--- Funcs.py 29 Dec 2002 01:47:57 -0000 1.18
***************
*** 22,26 ****
while 1:
i = i-3
! if i<=0:
break
number[i:i] = [',']
--- 22,26 ----
while 1:
i = i-3
! if i<=0 or number[i-1]=='-':
break
number[i:i] = [',']
|