32bit to long?

BlitzMax Forums/BlitzMax Programming/32bit to long?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

What's the easiest way you know to convert a string with 4 characters in it to a long? There's probably many ways, I just can't find any of them :(

I mean from e.g. "7ab4" to an unsigned long?
For instance the num equivs of a string is 34,0,58,241 and they become 570440433.

Hope it's clear enough, otherwise say something and I'll try to explain further :)