next up previous contents
Next: FSCANF Formatted File Input Up: Input/Ouput Functions Previous: FGETLINE Read a String   Contents

Subsections

STR2NUM Convert a String to a Number

Usage

Converts a string to a number. The general syntax for its use is

  x = str2num(string)

Here string is the data string, which contains the data to be converted into a number. The output is in double precision, and must be typecasted to the appropriate type based on what you need.



Samit K. Basu 2005-03-16