How to convert

Steve Holden steve at holdenweb.com
Sat Mar 18 23:07:48 CET 2006


JuHui wrote:
>>>>10/3.0
> 
> 3.3333333333333335
> 
The above value is a float, not a long ...

>>>>int(10/3.0)
> 
> 3
> 
  >>> int(1l)
1
  >>> 100000000000000000000
100000000000000000000L
  >>> 100000000000000000000/1000000000000000000
100L
  >>> int(100000000000000000000/1000000000000000000)
100
  >>>

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd                 www.holdenweb.com
Love me, love my blog         holdenweb.blogspot.com




More information about the Python-list mailing list