Convert from unicode to int

T

Tor Erik Sønvisen

Hi

Is there any simpler way to convert a unicode numeric to an int than:

int(u'1024'.encode('ascii'))

??

regards tores
 
G

Grant Edwards

Hi

Is there any simpler way to convert a unicode numeric to an int than:

int(u'1024'.encode('ascii'))
1024

Didn't that work for you when you tried it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,264
Messages
2,571,323
Members
48,005
Latest member
ChasityFan

Latest Threads

Top