formatting string to a number : <p>I am parsing a string with text and numbers in it e.g. abc00123.</p>

<p>When i extract numbers 00123 it is still a string so i cast to a double.</p>

<p>After i do this it it loses the zeros at the beginning of this.</p>

<p>Also the length of the numbers can vary.</p>

<p>Is there anyway to keep the zero when casting the string to a double ?</p>

<p>if not maybe i will compare the two strings and if the size of the original array is bigger append the differences onto the beginning of the number if possible?</p>

<p>Thanks in advance for the help.</p>
