[Tutor] Convert string to long

Alan Gauld alan.gauld at btinternet.com
Thu Feb 24 09:52:55 CET 2011


"tee chwee liong" <tcl76 at hotmail.com> wrote

> is there a way to convert from string to long? for eg: i want to
> concatenate all the arrays into data and make it same type (long) as 
> data1.

int()

should work ok.
Just remember to supply the base:
eg.

int(s,16) for a hex string

HTH,

Alan G. 




More information about the Tutor mailing list