Convert '165.0' to int
rosuav at gmail.com
Sun Jul 24 10:28:09 CEST 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')!='':
> I think you meant 'rstrip', but yes, neater and faster.
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