Re: String manipulations

2005-05-28 Thread Lorn
Thank you Elliot, this solution is the one I was trying to come up with. Thank you for your help and thank you to everyone for their suggestions. Best regards, Lorn -- http://mail.python.org/mailman/listinfo/python-list

Re: String manipulations

2005-05-28 Thread Elliot Temple
On May 28, 2005, at 2:52 PM, Lorn wrote: > Yes, that would get rid of the decimals... but it wouldn't get rid of > the extraneous precision. Unfortunately, the precision out to the ten > thousandth is noise... I don't need to round it either as the numbers > are artifacts of an integer to float c

Re: String manipulations

2005-05-28 Thread John Roth
"Lorn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm trying to work on a dataset that has its primary numbers saved as > floats in string format. I'd like to work with them as integers with an > implied decimal to the hundredth. The problem is that the current > precision is va

Re: String manipulations

2005-05-28 Thread Lorn
Yes, that would get rid of the decimals... but it wouldn't get rid of the extraneous precision. Unfortunately, the precision out to the ten thousandth is noise... I don't need to round it either as the numbers are artifacts of an integer to float conversion. Basically, I need to know how many decim

Re: String manipulations

2005-05-28 Thread Philippe C. Martin
Multiply them by 1 ? Lorn wrote: > I'm trying to work on a dataset that has it's primary numbers saved as > floats in string format. I'd like to work with them as integers with an > implied decimal to the hundredth. The problem is that the current > precision is variable. For instance, some n

String manipulations

2005-05-28 Thread Lorn
I'm trying to work on a dataset that has it's primary numbers saved as floats in string format. I'd like to work with them as integers with an implied decimal to the hundredth. The problem is that the current precision is variable. For instance, some numbers have 4 decimal places while others have