|
-
July 16th, 2002, 02:58 PM
#1
string conversion
Hi gang
I have a file that contains floating point numbers in text like this
-0.321435435D-02
0.4324325435D-02
1.4343243434D+00
2.4343434343D+5
-0.432432443D+2
etc
etc
i need to be able to loop through the file and convert each line ot a double where d-xx is the . placement
for example
0.4324325435D-02 = 0.004324325435
and
-0.432432443D+2 = -043.2432443
any tips on achieving this.
Thanks in advance
Scott
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|