07-13-2012 02:04 PM
Alright, so my bytes were lacking to get the exponential part.
I increased it to 24 and now I get it.
Thanks that was great help!
07-13-2012 02:06 PM
You are having a hard time understanding the fundamentals. Your string is truncated because you are not requesting enough bytes. Each character is a single byte. Increase your byte count to something arbitrary such as 1000. You'll get the full string. No need to try to guess how many bytes are supposed to be returned. The read will stop with an EOI.
07-13-2012 02:08 PM
I am sorry, I do know the theory, I was just being very panicky because I had to get sorted with this problem fast.
07-13-2012 02:24 PM
You may also need to use "%e" in place of "%f" in your format string. That will interpret the string as representing a number in scientific notation. Look at the detailed help for the Scan from String function and follow the link there to the format string help.
Lynn
07-13-2012 02:35 PM
Interestingly, both gave out the same result in this case.