[Baypiggies] scientific notation: string to int

Keith Dart keith at dartworks.biz
Wed Dec 8 22:51:50 CET 2010

=== On Wed, 12/08, Bryce Verdier wrote: ===
> Wow guys, thank you all for the quick response. I had no idea the 
> problem would be that easy to solve.


Hey, this is Python. ;-)

But you did say "int", so if that's what you really want, then:

Python> int(float('2.96116E+11'))

-- Keith Dart


-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   Keith Dart <keith at dartworks.biz>
   public key: ID: 19017044

More information about the Baypiggies mailing list