sorting items in a table problematic because ofscientific notation

Davis, Amelie Y aydavis at purdue.edu
Tue Apr 28 22:32:11 EDT 2009


Worked like a charm! 
Thanks to all 3 of you,

 
Amélie
 
 Please consider the environment before printing this e-mail or any of its attachments (if applicable)
 


-----Original Message-----
From: python-list-bounces+aydavis=purdue.edu at python.org [mailto:python-list-bounces+aydavis=purdue.edu at python.org] On Behalf Of John Machin
Sent: Tuesday, April 28, 2009 9:49 PM
To: python-list at python.org
Subject: Re: sorting items in a table problematic because ofscientific notation


 <skip <at> pobox.com> writes:
 
>     MRAB> FYI:
> 
>     >>> float(s)
>     105646.365517
> 
>     MRAB> which saves a few keystrokes. 
> 
> Thanks.  Didn't used to be that way I don't think.

  Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
  Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
  >>> float('    1.23456789e+004   ')
  12345.6789
  >>>

:-)


--
http://mail.python.org/mailman/listinfo/python-list


More information about the Python-list mailing list