Convert '165.0' to int

Chris Angelico rosuav at
Sun Jul 24 10:28:09 CEST 2011

On Sun, Jul 24, 2011 at 6:21 PM, Frank Millman <frank at> wrote:
> On Jul 24, 10:07 am, Chris Angelico <ros... at> 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!


More information about the Python-list mailing list