10-03-2007 11:33 AM
10-03-2007 11:44 AM
10-03-2007 11:48 AM
My best guess would be that the string you're converting has a space between the mantissa and the E (or e) or that there is some other character there that isn't part of a number. Could there be two E's? The conversion routiine interprets that as the end of the number, ignoring any remaining characters.
Rod.
10-03-2007 12:03 PM
Thank you Rod. Unfortunately I don't think that is the problem. As you can see in the atteched images, the array first displays the acquired data exactly as sent by the instrument. The first group of string indicators (n1-n16) are the modified strings. As you can see, there's only one "E" and no spaces. And finally, the third group are numeric indicators, where the conversion from string to number is displayed.
As shown in the images, sometimes it works, sometimes it doesn't...I really hope someone knows what's going on.
Ali.
10-03-2007 12:14 PM
...or instead of manipulating the string use this
Rod.
10-03-2007 12:25 PM
10-03-2007 12:30 PM
Hi Ali
See the attachment. it will help u.
Rigil Kumar
10-03-2007 12:47 PM
Thank you! That solved the problem just fine. I had just noticed the length mantissa was varying.
Thanks again.
Ali.