Convert '165.0' to int
rosuav at gmail.com
Sat Jul 23 17:20:35 CEST 2011
On Sun, Jul 24, 2011 at 1:12 AM, Billy Mays <noway at nohow.com> wrote:
> On 7/23/2011 3:42 AM, Chris Angelico wrote:
> Also, it will (in?)correct parse strings such as:
> to 165.
Yes, it will, but is that an issue to the OP? Programming is about
solving the problem you have, not the problems you don't have.
Sometimes it's better to have a simple solution that does the job than
an extremely complex one that isn't excessively lenient. Is it such a
problem for it to be lenient?
More information about the Python-list