A newbie question
- Posted by Philip Mann <pmann at HOLONICS.CA> Sep 11, 2000
- 485 views
If I read a record from a file with gets it is stored in a sequence, one character per element. If part of the record represents numeric data, e.g. a dollar amount, how can I convert the slice of the sequence containing "12.34" into the number 12.34 so that I can do arithmetic with it? Thanks, Philip.