Convert '165.0' to int

Chris Angelico rosuav at gmail.com
Sun Jul 24 04:28:09 EDT 2011


On Sun, Jul 24, 2011 at 6:21 PM, Frank Millman <frank at chagford.com> wrote:
> On Jul 24, 10:07 am, Chris Angelico <ros... at gmail.com> wrote:
>> if dec.rtrim('0')!='':
>>
>> ChrisA
>
> I think you meant 'rstrip', but yes, neater and faster.
>
> Thanks

Yeah, I did. Mea culpa... every language has it somewhere, but I keep
mucking up which one calls it what. That's what I get for not flicking
to IDLE before posting!

ChrisA



More information about the Python-list mailing list